mirror of
https://github.com/shazow/ssh-chat.git
synced 2026-11-16 02:42:42 +03:00
1 parent
67163a93a8
commit
5949f9792f
1 file changed
+1
@@ -59,6 +59,7 @@ func (l *SSHListener) Serve() {
|
||||
term, err := l.handleConn(conn)
|
||||
if err != nil {
|
||||
logger.Printf("[%s] Failed to handshake: %s", conn.RemoteAddr(), err)
|
||||
conn.Close() // Must be closed to avoid a leak
|
||||
return
|
||||
}
|
||||
l.HandlerFunc(term)
|
||||
|
||||
Reference in new issue
Block a user