summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-01-21 17:01:30 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-02-02 23:56:45 +0100
commit107e56fd35ec66534f9067c7c9841bfaf874b34b (patch)
tree99d043c466c15219c98253d3d683bebb28ab2356
parente1a5d3ef583b199871cdad279ae150ec73a6bf58 (diff)
WIP debug
-rw-r--r--tun/netstack/tun.go2
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 {