fields are displaying. ready to add DNS
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
69f1c0d643
commit
c314dab9ed
|
@ -27,10 +27,10 @@ func getHostname() {
|
|||
}
|
||||
if (me.fqdn != nil) {
|
||||
// s = me.fqdn.GetText()
|
||||
output("trying to update gui.Label", true)
|
||||
log("trying to update gui.Label")
|
||||
me.fqdn.SetText(s)
|
||||
}
|
||||
output("FQDN = jcarr" + s + "\n", true)
|
||||
log("FQDN =", s)
|
||||
}
|
||||
|
||||
func dnsAAAA(s string) []string {
|
||||
|
|
10
net.go
10
net.go
|
@ -81,6 +81,7 @@ func checkInterface(i net.Interface) {
|
|||
me.ipchange = true
|
||||
if (me.Interfaces != nil) {
|
||||
me.Interfaces.AddText(i.Name)
|
||||
me.Interfaces.SetText(i.Name)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -92,6 +93,7 @@ func checkInterface(i net.Interface) {
|
|||
me.ipchange = true
|
||||
if (me.Interfaces != nil) {
|
||||
me.Interfaces.AddText(i.Name)
|
||||
me.Interfaces.SetText(i.Name)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -162,9 +164,17 @@ func checkIP(ip *net.IPNet, i net.Interface) bool {
|
|||
me.ipmap[realip].ipv6 = true
|
||||
me.ipmap[realip].ipv4 = false
|
||||
t = "IPv6"
|
||||
if (me.IPv6 != nil) {
|
||||
me.IPv6.AddText(realip)
|
||||
me.IPv6.SetText(realip)
|
||||
}
|
||||
} else {
|
||||
me.ipmap[realip].ipv6 = false
|
||||
me.ipmap[realip].ipv4 = true
|
||||
if (me.IPv4 != nil) {
|
||||
me.IPv4.AddText(realip)
|
||||
me.IPv4.SetText(realip)
|
||||
}
|
||||
}
|
||||
if (IsReal(&ip.IP)) {
|
||||
log("\tIP is Real ", t, i.Index, i.Name, realip)
|
||||
|
|
Loading…
Reference in New Issue