Double ssh connection speed
This commit is contained in:
parent
160ed35d30
commit
1e901e2eea
@ -108,7 +108,7 @@ func (hs *HoneypotServer) passwordHandler(ctx ssh.Context, password string) bool
|
||||
func (s *HoneypotServer) connCallback(ctx ssh.Context, conn net.Conn) net.Conn {
|
||||
throttledConn := newThrottledConn(conn)
|
||||
ctx.SetValue("uuid", throttledConn.ID)
|
||||
throttledConn.SetSpeed(1024)
|
||||
throttledConn.SetSpeed(2048)
|
||||
return throttledConn
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user