Add debug log to ssh connection init
This commit is contained in:
parent
8084362d22
commit
e9d2f3581c
@ -115,6 +115,9 @@ func (hs *HoneypotServer) passwordHandler(ctx sshlib.Context, password string) b
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *HoneypotServer) connCallback(ctx sshlib.Context, conn net.Conn) net.Conn {
|
func (s *HoneypotServer) connCallback(ctx sshlib.Context, conn net.Conn) net.Conn {
|
||||||
|
s.Logger.Debugw("Connection received.", "remote_addr", conn.RemoteAddr())
|
||||||
|
conn.RemoteAddr()
|
||||||
|
|
||||||
throttledConn := newThrottledConn(conn)
|
throttledConn := newThrottledConn(conn)
|
||||||
throttledConn.SetSpeed(s.throttleSpeed)
|
throttledConn.SetSpeed(s.throttleSpeed)
|
||||||
ctx.SetValue("uuid", throttledConn.ID)
|
ctx.SetValue("uuid", throttledConn.ID)
|
||||||
|
Loading…
Reference in New Issue
Block a user