mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-22 08:24:25 +01:00
fixed recv_errors spoofing condition (#482)
Hi @nbrownus Fixed a small bug that was introduced in df7c7ee#diff-5d05d02296a1953fd5fbcb3f4ab486bc5f7c34b14c3bdedb068008ec8ff5beb4 having problems due to it
This commit is contained in:
@@ -340,7 +340,7 @@ func (f *Interface) handleRecvError(addr *udpAddr, h *Header) {
|
||||
if !hostinfo.RecvErrorExceeded() {
|
||||
return
|
||||
}
|
||||
if hostinfo.remote != nil && hostinfo.remote.Equals(addr) {
|
||||
if hostinfo.remote != nil && !hostinfo.remote.Equals(addr) {
|
||||
f.l.Infoln("Someone spoofing recv_errors? ", addr, hostinfo.remote)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user