Double ssh connection speed

This commit is contained in:
Torjus Håkestad 2021-04-10 13:15:34 +02:00
parent 160ed35d30
commit 1e901e2eea

View File

@ -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
}