nat

package
v0.0.0-...-92076c6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrMultipleNAT is an error returned when multiple NATs have been
	// detected.
	ErrMultipleNAT = errors.New("multiple NATs detected")
)

Functions

func ExternalIP

func ExternalIP(p *natpmp.Client) (net.IP, error)

ExternalIP returns the external IP address of the NAT-PMP enabled device. cant define this as a method of natpmp without definign a seaprate s truct

func SetupPmp

func SetupPmp(timeout time.Duration, port uint16) (*natpmp.Client, error)

within the given timeout.

func SetupUpnp

func SetupUpnp(port uint16) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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