go.crypto/ssh: add workaround for broken port forwarding in

OpenSSH 5.

Tested with OpenSSH_5.9

R=agl, dave
CC=golang-dev
https://golang.org/cl/11921043
This commit is contained in:
Han-Wen Nienhuys
2013-07-26 14:37:37 -04:00
committed by Adam Langley
parent eb19e229bd
commit 2d394e3025
4 changed files with 74 additions and 32 deletions
+3
View File
@@ -29,6 +29,8 @@ type ClientConn struct {
// Address as passed to the Dial function.
dialAddress string
serverVersion string
}
type globalRequest struct {
@@ -75,6 +77,7 @@ func (c *ClientConn) handshake() error {
return err
}
magics.serverVersion = version
c.serverVersion = string(version)
clientKexInit := kexInitMsg{
KexAlgos: supportedKexAlgos,
ServerHostKeyAlgos: supportedHostKeyAlgos,