From 2726dc0076a0e5ceb1c58437c53cc8a4144394e6 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sun, 13 Jun 2021 09:51:53 -0500 Subject: [PATCH] don't return an error if the source address is wrong, since this happens very frequently for link-local traffic --- src/core/keystore.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/keystore.go b/src/core/keystore.go index d2c6c24..cdc31aa 100644 --- a/src/core/keystore.go +++ b/src/core/keystore.go @@ -289,7 +289,9 @@ func (k *keyStore) writePC(bs []byte) (int, error) { copy(srcSubnet[:], bs[8:]) copy(dstSubnet[:], bs[24:]) if srcAddr != k.address && srcSubnet != k.subnet { - return 0, errors.New("wrong source address") + // This happens all the time due to link-local traffic + // Don't send back an error, just drop it + return 0, nil } buf := make([]byte, 1+len(bs), 65535) buf[0] = typeSessionTraffic