Fix check if filter/removeOutOfScopeDNS should applied to a connection

This commit is contained in:
Daniel
2021-03-30 12:00:58 +02:00
parent 986e868c27
commit 4398e96af5

View File

@@ -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.