]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
device: receive: uniform message for source address check
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 1 Jul 2019 13:24:50 +0000 (15:24 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 1 Jul 2019 13:24:50 +0000 (15:24 +0200)
device/receive.go

index eb6e3b26679165986d524c21e1f16dc359aa826a..7d0693e1f9e3206694333a61ca65fd3f5d07896b 100644 (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
                        }