device: receive: uniform message for source address check
This commit is contained in:
parent
b844f1b3cc
commit
f361e59001
|
@ -619,8 +619,8 @@ func (peer *Peer) RoutineSequentialReceiver() {
|
||||||
src := elem.packet[IPv6offsetSrc : IPv6offsetSrc+net.IPv6len]
|
src := elem.packet[IPv6offsetSrc : IPv6offsetSrc+net.IPv6len]
|
||||||
if device.allowedips.LookupIPv6(src) != peer {
|
if device.allowedips.LookupIPv6(src) != peer {
|
||||||
logInfo.Println(
|
logInfo.Println(
|
||||||
|
"IPv6 packet with disallowed source address from",
|
||||||
peer,
|
peer,
|
||||||
"sent packet with disallowed IPv6 source",
|
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue