Skip to content

Commit

Permalink
do not pass EOF errors to handler
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Will Boyce <[email protected]>
  • Loading branch information
wrboyce committed May 2, 2019
1 parent 734c64b commit c8b3030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func New(keyDir, shell string, passEnv bool, shellCreds *syscall.Credential, ver
}

func (s *Server) handleError(err error, tags map[string]string) {
if s.errorHandler != nil {
if s.errorHandler != nil && err.Error() != "EOF" {
s.errorHandler(err, tags)
}
}
Expand Down

0 comments on commit c8b3030

Please sign in to comment.