package
2024.3.0+incompatible
Repository: https://github.com/hiveot/hub.git
Documentation: pkg.go.dev

# Functions

GetInterfaces returns a list of active network interfaces excluding the loopback interface address to only return the interface that serves the given IP address.
GetIP4Subnets of the valid IPv4 interfaces Returns list of one or more ip/subnet strings This is often a single subnet unless there is wifi, multiple cards or vlans.
GetOutboundInterface Get preferred outbound network interface of this machine Credits: https://stackoverflow.com/questions/23558425/how-do-i-get-the-local-ip-address-in-go and https://qiita.com/shaching/items/4c2ee8fd2914cce8687c.
GetOutboundIP returns the default outbound IP address to reach the given hostname.