sql
This commit is contained in:
1 parent
70d98d97f0
commit
8953356c47
11 files changed
+368
-3
No files matched your search
+1
-1
@@ -141,13 +141,13 @@ func handleSSHConnection(conn net.Conn, serverConfig *ssh.ServerConfig) {
|
||||
continue
|
||||
}
|
||||
|
||||
connNum++
|
||||
if connNum > int(conf.Sshd.MaxConnNum) {
|
||||
log.Error("Maximum number of connections exceeded")
|
||||
//conn.Write([]byte("Reach max connections"))
|
||||
conn.Close()
|
||||
continue
|
||||
}
|
||||
connNum++
|
||||
|
||||
go handleSSHChannel(conn, sshConn, channel, requests)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user