From 107e56fd35ec66534f9067c7c9841bfaf874b34b Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 21 Jan 2021 17:01:30 +0100 Subject: WIP debug --- tun/netstack/tun.go | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit v1.2.3