fix real IPv4 display
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a811226c53
commit
d1d5e15cca
|
@ -3,7 +3,6 @@
|
|||
package linuxstatus
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"io/ioutil"
|
||||
"go.wit.com/log"
|
||||
|
||||
|
@ -65,12 +64,6 @@ func (ls *LinuxStatus) setHostShort() {
|
|||
}
|
||||
}
|
||||
|
||||
func (ls *LinuxStatus) GetIPv6() []string {
|
||||
if ! me.Ready() {return nil}
|
||||
tmp := me.workingIPv6.Get()
|
||||
return strings.Split(tmp, "\n")
|
||||
}
|
||||
|
||||
func lookupHostname() {
|
||||
if ! me.Ready() {return}
|
||||
var err error
|
||||
|
|
|
@ -270,9 +270,15 @@ func deleteChanges() bool {
|
|||
return changed
|
||||
}
|
||||
|
||||
func (ls *LinuxStatus) GetIPv4() []string {
|
||||
func (ls *LinuxStatus) GetIPv6() []string {
|
||||
if ! me.Ready() {return nil}
|
||||
tmp := "(none) fixme"
|
||||
tmp := me.workingIPv6.Get()
|
||||
return strings.Split(tmp, "\n")
|
||||
}
|
||||
|
||||
func (ls *LinuxStatus) GetIPv4() []string {
|
||||
if ! me.Ready() {return nil}
|
||||
tmp := me.workingIPv4.Get()
|
||||
return strings.Split(tmp, "\n")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue