MCPcopy
hub / github.com/safing/portmaster / SubmitDNSCheckDomain

Function SubmitDNSCheckDomain

service/compat/callbacks.go:20–31  ·  view source on GitHub ↗

SubmitDNSCheckDomain submits a subdomain for the dns check.

(subdomain string)

Source from the content-addressed store, hash-verified

18
19// SubmitDNSCheckDomain submits a subdomain for the dns check.
20func SubmitDNSCheckDomain(subdomain string) (respondWith net.IP) {
21 // Submit queried domain.
22 select {
23 case dnsCheckReceivedDomain <- subdomain:
24 default:
25 }
26
27 // Return the answer.
28 dnsCheckAnswerLock.Lock()
29 defer dnsCheckAnswerLock.Unlock()
30 return dnsCheckAnswer
31}
32
33// ReportSecureDNSBypassIssue reports a DNS bypassing issue for the given process.
34func ReportSecureDNSBypassIssue(p *process.Process) {

Callers 2

inspectDNSPacketFunction · 0.92
processIfSelfCheckDomainFunction · 0.92

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected