SubmitDNSCheckDomain submits a subdomain for the dns check.
(subdomain string)
| 18 | |
| 19 | // SubmitDNSCheckDomain submits a subdomain for the dns check. |
| 20 | func 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. |
| 34 | func ReportSecureDNSBypassIssue(p *process.Process) { |
no test coverage detected