diff options
Diffstat (limited to 'tun/netstack/tun.go')
-rw-r--r-- | tun/netstack/tun.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go index de37b52..c5f8326 100644 --- a/tun/netstack/tun.go +++ b/tun/netstack/tun.go @@ -580,6 +580,7 @@ func (tnet *Net) tryOneName(ctx context.Context, name string, qtype dnsmessage.T func (tnet *Net) LookupContextHost(ctx context.Context, host string) ([]string, error) { if host == "" || (!tnet.hasV6 && !tnet.hasV4) { + fmt.Printf("LookupContextHost: ", host, tnet.hasV4, tnet.hasV6) return nil, &net.DNSError{Err: errNoSuchHost.Error(), Name: host, IsNotFound: true} } zlen := len(host) @@ -593,6 +594,7 @@ func (tnet *Net) LookupContextHost(ctx context.Context, host string) ([]string, } if !isDomainName(host) { + fmt.Printf("LookupContextHost !isDomainName", host[:zlen]) return nil, &net.DNSError{Err: errNoSuchHost.Error(), Name: host, IsNotFound: true} } type result struct { |