stun

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesIPExistLocally added in v0.18.6

func DoesIPExistLocally(ip net.IP) bool

DoesIPExistLocally - checks if the IP address exists on a local interface

func GetHostNatInfo added in v0.18.6

func GetHostNatInfo(stunList []nmmodels.StunServer, currentPublicIP string, stunPort int) (info *models.HostInfo)

GetHostNatInfo - calls stun server for udp hole punch and fetches host info

func IsPublicIP added in v0.18.6

func IsPublicIP(ip net.IP) bool

IsPublicIP indicates whether IP is public or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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