Merge pull request #283 from safing/fix/dns-split-view-check

Fix check if filter/removeOutOfScopeDNS should applied to a connection
This commit is contained in:
Daniel 2021-03-30 12:13:19 +02:00 committed by GitHub
commit c5870d3c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.