mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-18 17:57:41 +03:00
parent
67163a93a8
commit
5949f9792f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user