Add support for network service

This commit is contained in:
Daniel
2021-01-19 15:43:22 +01:00
parent 3f8c99517f
commit 12f3c0ea8d
14 changed files with 320 additions and 65 deletions

View File

@@ -3,7 +3,6 @@ package firewall
import (
"context"
"net"
"os"
"strings"
"time"
@@ -88,7 +87,7 @@ func filterDNSResponse(conn *network.Connection, rrCache *resolver.RRCache) *res
p := conn.Process().Profile()
// do not modify own queries
if conn.Process().Pid == os.Getpid() {
if conn.Process().Pid == ownPID {
return rrCache
}