diff options
| author | Jeff Carr <[email protected]> | 2024-01-21 00:15:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-21 00:15:20 -0600 |
| commit | fdc01e28d9f45e923bdbc783f957e5b87f108659 (patch) | |
| tree | e5ff92b4cbeb21d7c57eec0cf4cc8aa71d622ee3 /dns-https.go | |
| parent | 495a08eddaef290dd4a6f63a543cf31ef26522f5 (diff) | |
name changes in the gui package
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'dns-https.go')
| -rw-r--r-- | dns-https.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dns-https.go b/dns-https.go index d7a5469..50b14aa 100644 --- a/dns-https.go +++ b/dns-https.go @@ -1,14 +1,14 @@ package main import ( + "encoding/json" "fmt" - "strings" "io/ioutil" - "encoding/json" "net/http" + "strings" - "go.wit.com/log" "github.com/miekg/dns" + "go.wit.com/log" ) // dnsLookupDoH performs a DNS lookup for AAAA records over HTTPS. @@ -67,7 +67,7 @@ func digAAAA(hostname string) []string { blah, _ = dnsUdpLookup("1.1.1.1:53", hostname, recordType) log.Println("digAAAA() has BLAH =", blah) - if (len(blah) == 0) { + if len(blah) == 0 { log.Println("digAAAA() RUNNING dnsAAAAlookupDoH(domain)") ipv6Addresses = lookupDoH(hostname, "AAAA") log.Println("digAAAA() has ipv6Addresses =", strings.Join(ipv6Addresses, " ")) |
