From 4398e96af5011dfeaa8cd39503fd18669d6b44a4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 30 Mar 2021 12:00:58 +0200 Subject: [PATCH] Fix check if filter/removeOutOfScopeDNS should applied to a connection --- firewall/master.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall/master.go b/firewall/master.go index efe515d9..5b77e45a 100644 --- a/firewall/master.go +++ b/firewall/master.go @@ -302,7 +302,7 @@ func checkConnectionScope(_ context.Context, conn *network.Connection, _ packet. // If the IP address was resolved, check the scope of the resolver. switch { - case p.RemoveOutOfScopeDNS(): + case !p.RemoveOutOfScopeDNS(): // Out of scope checking is not active. case conn.Resolver == nil: // IP address of connection was not resolved.