diff --git a/internal/runner/runner.go b/internal/runner/runner.go index 269dd15..94f55f0 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -74,6 +74,10 @@ func New(options *Options) (*Runner, error) { // Run logic func (r *Runner) Run() error { if r.options.EnableTCP { + if r.options.TCPWithTLS { + gologger.Print().Msgf("Serving TCP rule based tls server on tcp://%s", r.options.ListenAddress) + return r.serverTCP.ListenAndServeTLS() + } gologger.Print().Msgf("Serving TCP rule based server on tcp://%s", r.options.ListenAddress) return r.serverTCP.ListenAndServe() }