From 6302ed66b2b15f4d64a26bb5455dd260249f6a9d Mon Sep 17 00:00:00 2001 From: Eugene K Date: Fri, 12 Apr 2024 12:18:42 -0400 Subject: [PATCH] avoid logging stray packets (multicast, etc) --- endpoints/vpn/backend.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/endpoints/vpn/backend.go b/endpoints/vpn/backend.go index 34ab4d6c..e549c074 100644 --- a/endpoints/vpn/backend.go +++ b/endpoints/vpn/backend.go @@ -125,7 +125,9 @@ func (b *Backend) readTun() { b.clients.Remove(dest) } } else { - logrus.Errorf("no client with address[%v]", dest) + if b.subnet.Contains(net.IP(dest.addr[:])) { + logrus.Errorf("no client with address[%v]", dest) + } } } }