From 077d576becae10b35b84782d4070fbf2f5c0b7c8 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 9 Oct 2023 06:00:08 +0000 Subject: good progress, fixing almost all of the red. in the process of ensuring the data structures are initialized correctly. --- cmd/example/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/example') diff --git a/cmd/example/main.go b/cmd/example/main.go index 5b6ae61..383e490 100644 --- a/cmd/example/main.go +++ b/cmd/example/main.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "iptcp-jailpt2/pkg/lnxconfig" + "iptcp/pkg/lnxconfig" "net/netip" "os" ) @@ -24,5 +24,8 @@ func main() { for _, iface := range lnxConfig.Interfaces { prefixForm := netip.PrefixFrom(iface.AssignedIP, iface.AssignedPrefix.Bits()) fmt.Printf("%s has IP %s\n", iface.Name, prefixForm.String()) + + fmt.Printf(iface.UDPAddr.String() + "\n") + fmt.Printf(iface.AssignedIP.String() + "\n") } } -- cgit v1.2.3-70-g09d2