package
3.3.10+incompatible
Repository: https://github.com/ivpn/desktop-app-daemon.git
Documentation: pkg.go.dev
# Functions
DefaultGatewayIP - returns: default gatewat IP.
GetAllLocalV4Addresses - returns IPv4 addresses of all local interfaces.
GetAllLocalV6Addresses - returns IPv6 addresses of all local interfaces.
GetFreePort - get unused local port Note there is no guarantee that port will not be in use right after finding it.
GetFreeTCPPort - get unused TCP local port Note there is no guarantee that port will not be in use right after finding it.
GetFreeUDPPort - get unused UDP local port Note there is no guarantee that port will not be in use right after finding it.
GetInterfaceByIndex - get interface info by its index.
InterfaceByIPAddr - Get network interface object by it's local IP address.