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]
if device.allowedips.LookupIPv6(src) != peer {
logInfo.Println(
"IPv6 packet with disallowed source address from",
peer,
"sent packet with disallowed IPv6 source",
)
continue
}