ingress/tcp: add additional error logging on failed (#7208)

This commit is contained in:
Matt1360 2021-06-29 15:27:39 -04:00 committed by GitHub
parent 4bdb5538a4
commit 197a26a8f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,7 @@ func (p *TCPProxy) Handle(conn net.Conn) {
hostPort := net.JoinHostPort(proxy.IP, fmt.Sprintf("%v", proxy.Port))
clientConn, err := net.Dial("tcp", hostPort)
if err != nil {
klog.V(4).ErrorS(err, "error dialing proxy", "ip", proxy.IP, "port", proxy.Port, "hostname", proxy.Hostname)
return
}
defer clientConn.Close()