Ver Fonte

Merge pull request #2432 from nd/develop

Fix #2431 - handle requests waiting for reply
Unknwon há 9 anos atrás
pai
commit
b33abc6280
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      modules/ssh/ssh.go

+ 1 - 0
modules/ssh/ssh.go

@@ -91,6 +91,7 @@ func handleServerConn(keyID string, chans <-chan ssh.NewChannel) {
 						return
 					}
 
+					req.Reply(true, nil);
 					go io.Copy(input, ch)
 					io.Copy(ch, stdout)
 					io.Copy(ch.Stderr(), stderr)