fix duplicate setspeed call
This commit is contained in:
parent
ca96115fe2
commit
fb2fb5de5e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user