Merge pull request #15 from atlassian/belak/always-send-pty-response
Always respond to PTY requests
This commit is contained in:
commit
39bc88bc6d
@ -168,8 +168,9 @@ func (sess *session) handleRequests(reqs <-chan *gossh.Request) {
|
|||||||
if ok {
|
if ok {
|
||||||
sess.pty = &Pty{Window{width, height}}
|
sess.pty = &Pty{Window{width, height}}
|
||||||
sess.winch = make(chan Window)
|
sess.winch = make(chan Window)
|
||||||
req.Reply(true, nil)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
req.Reply(ok, nil)
|
||||||
case "window-change":
|
case "window-change":
|
||||||
if sess.pty == nil {
|
if sess.pty == nil {
|
||||||
req.Reply(false, nil)
|
req.Reply(false, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user