Add custom routing for DNS server connections

This commit is contained in:
Daniel
2021-10-12 16:18:36 +02:00
parent 0f48d32ac2
commit 960101d3a9
5 changed files with 46 additions and 111 deletions

View File

@@ -141,6 +141,10 @@ func checkPortmasterConnection(ctx context.Context, conn *network.Connection, _
log.Tracer(ctx).Infof("filter: granting own connection %s", conn)
conn.Accept("connection by Portmaster", noReasonOptionKey)
conn.Internal = true
// Set tunnel options.
setCustomTunnelOptionsForPortmaster(conn)
return true
}