fix duplicate setspeed call

This commit is contained in:
Torjus Håkestad 2022-09-28 15:31:33 +02:00
parent ca96115fe2
commit fb2fb5de5e
No known key found for this signature in database
GPG Key ID: C6FD38B820D295FC

View File

@ -122,7 +122,6 @@ func (s *HoneypotServer) connCallback(ctx sshlib.Context, conn net.Conn) net.Con
throttledConn := newThrottledConn(conn) throttledConn := newThrottledConn(conn)
throttledConn.SetSpeed(s.throttleSpeed) throttledConn.SetSpeed(s.throttleSpeed)
ctx.SetValue("uuid", throttledConn.ID) ctx.SetValue("uuid", throttledConn.ID)
throttledConn.SetSpeed(s.throttleSpeed)
return throttledConn return throttledConn
} }