master
fangdingjun 8 years ago
parent cf4239dd9f
commit 97d3031a2e

@ -70,7 +70,6 @@ func NewObfsConn(c net.Conn, method, key string, isServer bool) (*ObfsConn, erro
return nil, err return nil, err
} }
} }
return nil, err
} }
} else { } else {
if err := wc.writeSeed(); err != nil { if err := wc.writeSeed(); err != nil {

@ -244,7 +244,7 @@ func (sc *Server) handleCancelTcpipForward(req *ssh.Request) {
func (sc *Server) handleTcpipForward(req *ssh.Request) { func (sc *Server) handleTcpipForward(req *ssh.Request) {
var addr tcpipForwardAddr var addr tcpipForwardAddr
if err := ssh.Unmarshal(req.Payload, &addr); err != nil { if err := ssh.Unmarshal(req.Payload, &addr); err != nil {
Log(ERROR, "parse ssh data error: %s", err.Error) Log(ERROR, "parse ssh data error: %s", err)
if req.WantReply { if req.WantReply {
req.Reply(false, nil) req.Reply(false, nil)
} }

Loading…
Cancel
Save