diff --git a/pkg/tcpproxy/tcp.go b/pkg/tcpproxy/tcp.go index fba4d21be..05d74433d 100644 --- a/pkg/tcpproxy/tcp.go +++ b/pkg/tcpproxy/tcp.go @@ -75,6 +75,10 @@ func (p *TCPProxy) Handle(conn net.Conn) { proxy = p.Get(hostname) } + if err != nil { + klog.V(4).InfoS("GetHostname cause an", "error", err) + } + if proxy == nil { klog.V(4).InfoS("There is no configured proxy for SSL connections.") return