diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 19:00:51 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 19:00:51 -0600 |
| commit | 39a32b39333fea86eee130cc493acbc56f6e33a7 (patch) | |
| tree | 0c199281ab36406469d67e89ac289e7542d71c60 /linuxstatus/hostname.go | |
| parent | 1191d1548470a7ed1049f1d78de6f17b77e0d36d (diff) | |
ready to compare host and dns AAAA values
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/hostname.go')
| -rw-r--r-- | linuxstatus/hostname.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linuxstatus/hostname.go b/linuxstatus/hostname.go index e9ac5f4..63ab817 100644 --- a/linuxstatus/hostname.go +++ b/linuxstatus/hostname.go @@ -3,6 +3,7 @@ package linuxstatus import ( + "strings" "go.wit.com/log" "go.wit.com/shell" @@ -64,6 +65,11 @@ func (ls *LinuxStatus) setHostShort() { } } +func (ls *LinuxStatus) GetIPv6os() []string { + tmp := me.workingIPv6.Get() + return strings.Split(tmp, "\n") +} + func lookupHostname() { if ! me.Ready() {return} var err error |
