Skip to content

Commit 87f8d8e

Browse files
authored
Fix panic when remote forward target is unavailable (antoniomika#355)
1 parent 34b5d5d commit 87f8d8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sshmuxer/requests.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ func handleRemoteForward(newRequest *ssh.Request, sshConn *utils.SSHConnection,
405405
if err != nil {
406406
log.Println("Error closing client connection:", err)
407407
}
408+
return
408409
}
409410

410411
if sshConn.ProxyProto != 0 && listenerType == utils.TCPListener {

0 commit comments

Comments
 (0)