Skip to content

Commit 70d3723

Browse files
committed
Fix failed handler
1 parent f8566f3 commit 70d3723

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

agent/agent.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ func (s *server) init(ctx context.Context) {
100100
forwardHandler := &ssh.ForwardedTCPHandler{}
101101
s.sshServer = &ssh.Server{
102102
ChannelHandlers: ssh.DefaultChannelHandlers,
103-
ConnectionFailedCallback: func(conn net.Conn, err error) {
104-
sshLogger.Info(ctx, "ssh connection ended", slog.Error(err))
105-
},
106103
Handler: func(session ssh.Session) {
107104
err := s.handleSSHSession(session)
108105
if err != nil {

0 commit comments

Comments
 (0)