Skip to content

Commit

Permalink
let exec sessions also send replies to the client if requested
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Gergely Imreh <[email protected]>
  • Loading branch information
imrehg committed Jun 11, 2018
1 parent 18895a3 commit e7d9e4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sshproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ func (s *Server) handleRequests(reqs <-chan *ssh.Request, channel ssh.Channel, c
s.handleError(err, nil)
}

if req.WantReply {
if err := req.Reply(true, nil); err != nil {
return err
}
}

go func() {
done := make(chan error, 1)
go func() {
Expand Down

0 comments on commit e7d9e4a

Please sign in to comment.