diff options
| author | Jeff Carr <[email protected]> | 2023-03-25 08:40:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-25 08:40:48 -0500 |
| commit | c314dab9ed963a381c7d53129703630e1d0dd409 (patch) | |
| tree | e5bd9f68bed38583c92169626b561fa9268d36cb /net.go | |
| parent | 69f1c0d643a167ca3cfc4546a6f98e3c1127d89e (diff) | |
fields are displaying. ready to add DNS
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'net.go')
| -rw-r--r-- | net.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |
