diff options
Diffstat (limited to 'hostnameStatusWindow.go')
| -rw-r--r-- | hostnameStatusWindow.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/hostnameStatusWindow.go b/hostnameStatusWindow.go index c37f430..0f5d777 100644 --- a/hostnameStatusWindow.go +++ b/hostnameStatusWindow.go @@ -234,6 +234,17 @@ func (hs *hostnameStatus) GetIPv6() []string { return strings.Split(tmp, "\n") } +func (hs *hostnameStatus) GetIPv4() []string { + if !hs.Ready() { + return nil + } + // clean out any blank lines + // todo: fix this whole hacky thing + tmp := hs.dnsA.String() + tmp = strings.TrimSpace(tmp) + return strings.Split(tmp, "\n") +} + func (hs *hostnameStatus) updateStatus() { if !hs.Ready() { return @@ -349,7 +360,7 @@ func (hs *hostnameStatus) verifyIPv6() (bool, error) { log.Log(INFO, "What are the AAAA resource records in DNS?") for _, aaaa := range me.statusDNS.GetIPv6() { - log.Log(INFO, "FOUND DNS AAAA ip", aaaa) + // log.Log(INFO, "FOUND DNS AAAA ip", aaaa) dnsAAAA[aaaa] = "dns" } |
