Add support for firefox canary domain for disabling DoH

This commit is contained in:
Patrick Pacher
2020-04-17 11:01:26 +02:00
parent cee50745bb
commit 943246c747
4 changed files with 55 additions and 4 deletions

View File

@@ -141,9 +141,19 @@ func DecideOnConnection(conn *network.Connection, pkt packet.Packet) { //nolint:
}
}
// check for bypass protection
result, reason := p.MatchBypassProtection(conn.Entity)
switch result {
case endpoints.Denied:
conn.Block("bypass prevention: " + reason)
return
case endpoints.Permitted:
conn.Accept("bypass prevention: " + reason)
return
case endpoints.NoMatch:
}
// check endpoints list
var result endpoints.EPResult
var reason string
if conn.Inbound {
result, reason = p.MatchServiceEndpoint(conn.Entity)
} else {