protocol is either "udp" or "tcp" AddPortMapping maps a port on the local host to an external port. DeletePortMapping removes a port mapping. GetDeviceAddress returns the internal address of the gateway device. GetExternalAddress returns the external address of the gateway device. GetInternalAddress returns the address of the local host. Type returns the kind of NAT port mapping service that is used
func DiscoverGateway(ctx context.Context) (NAT, error)
Package-Level Functions (only one)
DiscoverGateway attempts to find a gateway device.
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.