diff options
| author | Jeff Carr <[email protected]> | 2024-01-07 07:21:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-07 07:21:36 -0600 |
| commit | 7343cbfa5753d6df2768936744c25e0465552f32 (patch) | |
| tree | 77d678321183714f62c7f74bc5f1acd8365970c6 /linuxstatus/net.go | |
| parent | 807b3be94f4be4b1aeea48695474aca1bfef4ab2 (diff) | |
fix real IPv4 display
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/net.go')
| -rw-r--r-- | linuxstatus/net.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/linuxstatus/net.go b/linuxstatus/net.go index 7170765..22c9a4c 100644 --- a/linuxstatus/net.go +++ b/linuxstatus/net.go @@ -270,9 +270,15 @@ func deleteChanges() bool { return changed } +func (ls *LinuxStatus) GetIPv6() []string { + if ! me.Ready() {return nil} + tmp := me.workingIPv6.Get() + return strings.Split(tmp, "\n") +} + func (ls *LinuxStatus) GetIPv4() []string { if ! me.Ready() {return nil} - tmp := "(none) fixme" + tmp := me.workingIPv4.Get() return strings.Split(tmp, "\n") } |
