Added ratelimiting of handshake messages
This commit is contained in:
@@ -319,6 +319,10 @@ func (device *Device) RoutineHandshake() {
|
||||
|
||||
// ratelimit
|
||||
|
||||
if !device.ratelimiter.Allow(elem.source.IP) {
|
||||
return
|
||||
}
|
||||
|
||||
// handle messages
|
||||
|
||||
switch elem.msgType {
|
||||
|
||||
Reference in New Issue
Block a user