1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00

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