summaryrefslogtreecommitdiff
path: root/ipv6test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ipv6test.go')
-rw-r--r--ipv6test.go18
1 files changed, 16 insertions, 2 deletions
diff --git a/ipv6test.go b/ipv6test.go
index c6befb0..24081ae 100644
--- a/ipv6test.go
+++ b/ipv6test.go
@@ -23,10 +23,24 @@ func ipv6fails() bool {
log.Info(s)
WarningForIpv4()
s = "THIS FEATURE IS NOT SUPPORTED ON IPv4"
- argvpb.BadExit(s, nil)
+ argvpb.BadExit(s, err)
+ }
+ if len(addrs) == 0 {
+ s = "THIS FEATURE IS NOT SUPPORTED ON IPv4."
+ argvpb.BadExit(s, errors.New("IPv6 DNS is not returning ip addresses"))
+ }
+
+ addrs, err = LookupIPv6("cgit.grid.wit.com")
+ if err != nil {
+ log.Printf("%v\n", err)
+ log.Info(s)
+ WarningForIpv4()
+ s = "Your OS is not correctly resolving IPv6 addresses."
+ argvpb.BadExit(s, err)
}
if len(addrs) == 0 {
- log.Info("wierd. probably ipv6 dns problems")
+ s = "Your OS is not correctly resolving IPv6 addresses."
+ argvpb.BadExit(s, errors.New("IPv6 DNS is not returning ip addresses"))
}
/*
s, err = IPv6TestDNS()