device: receive: uniform message for source address check

This commit is contained in:
Jason A. Donenfeld 2019-07-01 15:24:50 +02:00
parent b844f1b3cc
commit f361e59001

View file

@ -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
} }