Merge branch 'develop' into feature/ui-revamp

This commit is contained in:
Patrick Pacher
2020-09-29 09:19:15 +02:00
26 changed files with 731 additions and 390 deletions

View File

@@ -13,7 +13,9 @@ import (
func PreventBypassing(conn *network.Connection) (endpoints.EPResult, string, nsutil.Responder) {
// Block firefox canary domain to disable DoH
if strings.ToLower(conn.Entity.Domain) == "use-application-dns.net." {
return endpoints.Denied, "blocked canary domain to prevent enabling DNS-over-HTTPs", nsutil.NxDomain()
return endpoints.Denied,
"blocked canary domain to prevent enabling of DNS-over-HTTPs",
nsutil.NxDomain()
}
return endpoints.NoMatch, "", nil

View File

@@ -28,7 +28,7 @@ type Queue struct {
}
// New opens a new nfQueue.
func New(qid uint16, v6 bool) (*Queue, error) {
func New(qid uint16, v6 bool) (*Queue, error) { //nolint:gocognit
afFamily := unix.AF_INET
if v6 {
afFamily = unix.AF_INET6