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:
committed by
Adam Langley
parent
eb19e229bd
commit
2d394e3025
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user