fix duplicate setspeed call
This commit is contained in:
@@ -122,7 +122,6 @@ func (s *HoneypotServer) connCallback(ctx sshlib.Context, conn net.Conn) net.Con
|
||||
throttledConn := newThrottledConn(conn)
|
||||
throttledConn.SetSpeed(s.throttleSpeed)
|
||||
ctx.SetValue("uuid", throttledConn.ID)
|
||||
throttledConn.SetSpeed(s.throttleSpeed)
|
||||
return throttledConn
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user