Skip to content

Commit 69c6e72

Browse files
author
wafuwafu13
committed
gofmt
1 parent 3644be5 commit 69c6e72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

check-dns/lib/nameserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
package checkdns
44

55
import (
6-
"net"
76
"fmt"
87
"github.com/miekg/dns"
8+
"net"
99
)
1010

1111
func adapterAddress() (string, error) {

check-dns/lib/nameserver_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func adapterAddress() (string, error) {
3333
for aa := (*windows.IpAdapterAddresses)(unsafe.Pointer(&b[0])); aa != nil; aa = aa.Next {
3434
aas = append(aas, aa)
3535
}
36-
nameserver := aas[0].FirstDnsServerAddress.Address.IP().String()
36+
nameserver := aas[0].FirstDnsServerAddress.Address.IP().String()
3737
// ref: https://github.com/miekg/exdns/blob/d851fa434ad51cb84500b3e18b8aa7d3bead2c51/q/q.go#L154-L158
3838
if net.ParseIP(nameserver) == nil {
3939
nameserver = dns.Fqdn(nameserver)

0 commit comments

Comments
 (0)