externalip

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstExternalIP

func FirstExternalIP() net.IP

FirstExternalIP returns the first external IP of the network interfaces on the server.

func GetExternalFirstTcp

func GetExternalFirstTcp(addr *peer.AddrInfo) *net.TCPAddr

func GetInternalFirstTcp

func GetInternalFirstTcp(addr *peer.AddrInfo) *net.TCPAddr

func IsExternal

func IsExternal(ip net.IP) bool

IsExternal returns true if the given IP matches one of the IP address of the external network interfaces on the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL