nat

package
v0.0.0-...-5d85a61 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(m Interface, c chan struct{}, protocol string, extport, intport int, name string)

Types

type Interface

type Interface interface {
	AddMapping(protocol string, extport, intport int, name string, lifetime time.Duration) error
	DeleteMapping(protocol string, extport, intport int) error

	ExternalIP() (net.IP, error)

	String() string
}

func Any

func Any() Interface

func ExtIP

func ExtIP(ip net.IP) Interface

func PMP

func PMP(gateway net.IP) Interface

func Parse

func Parse(spec string) (Interface, error)

func UPnP

func UPnP() Interface

Jump to

Keyboard shortcuts

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