mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-07 10:53:07 +03:00
parent
67163a93a8
commit
5949f9792f
@ -59,6 +59,7 @@ func (l *SSHListener) Serve() {
|
|||||||
term, err := l.handleConn(conn)
|
term, err := l.handleConn(conn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Printf("[%s] Failed to handshake: %s", conn.RemoteAddr(), err)
|
logger.Printf("[%s] Failed to handshake: %s", conn.RemoteAddr(), err)
|
||||||
|
conn.Close() // Must be closed to avoid a leak
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
l.HandlerFunc(term)
|
l.HandlerFunc(term)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user