diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-01-21 17:01:30 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-02-02 23:56:45 +0100 |
commit | 107e56fd35ec66534f9067c7c9841bfaf874b34b (patch) | |
tree | 99d043c466c15219c98253d3d683bebb28ab2356 /tun/netstack/tun.go | |
parent | e1a5d3ef583b199871cdad279ae150ec73a6bf58 (diff) |
WIP debug
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 { |