mirror of
https://github.com/safing/portmaster
synced 2025-09-02 18:49:14 +00:00
Set dns redirects to Internal for better UX
This commit is contained in:
parent
6e9c22d0b5
commit
c3ca0c4c84
1 changed files with 1 additions and 0 deletions
|
@ -214,6 +214,7 @@ func initialHandler(conn *network.Connection, pkt packet.Packet) {
|
||||||
// reroute dns requests to nameserver
|
// reroute dns requests to nameserver
|
||||||
if conn.Process().Pid != os.Getpid() && pkt.IsOutbound() && pkt.Info().DstPort == 53 && !pkt.Info().Src.Equal(pkt.Info().Dst) {
|
if conn.Process().Pid != os.Getpid() && pkt.IsOutbound() && pkt.Info().DstPort == 53 && !pkt.Info().Src.Equal(pkt.Info().Dst) {
|
||||||
conn.Verdict = network.VerdictRerouteToNameserver
|
conn.Verdict = network.VerdictRerouteToNameserver
|
||||||
|
conn.Internal = true
|
||||||
conn.StopFirewallHandler()
|
conn.StopFirewallHandler()
|
||||||
issueVerdict(conn, pkt, 0, true)
|
issueVerdict(conn, pkt, 0, true)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue