Fix panic when remote forward target is unavailable (#355)

This commit is contained in:
Vladimir Urushev
2025-10-07 17:56:27 +02:00
committed by GitHub
parent 34b5d5dc7e
commit 87f8d8e819
+1
View File
@@ -405,6 +405,7 @@ func handleRemoteForward(newRequest *ssh.Request, sshConn *utils.SSHConnection,
if err != nil {
log.Println("Error closing client connection:", err)
}
return
}
if sshConn.ProxyProto != 0 && listenerType == utils.TCPListener {