golang-github-nebulouslabs-go-upnp 0.0~git20171003.0.1be4557-1.1 source package in Ubuntu
Changelog
golang-github-nebulouslabs-go-upnp (0.0~git20171003.0.1be4557-1.1) unstable; urgency=medium * Non maintainer upload by the Reproducible Builds team. * No source change upload to rebuild on buildd with .buildinfo files. -- Holger Levsen <email address hidden> Sat, 09 Jan 2021 12:29:33 +0100
Upload details
- Uploaded by:
- Debian Go Packaging Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Go Packaging Team
- Architectures:
- all
- Section:
- golang
- Urgency:
- Medium Urgency
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-nebulouslabs-go-upnp_0.0~git20171003.0.1be4557-1.1.dsc | 2.5 KiB | c51ee22dc3fe0d8f08bf06f32e7a0022129a467849e06c624e93bdfa2c6463fd |
golang-github-nebulouslabs-go-upnp_0.0~git20171003.0.1be4557.orig.tar.gz | 26.7 KiB | 64ee76f6000418839b33933e498257d6699053948a8f3937508d7432774b789a |
golang-github-nebulouslabs-go-upnp_0.0~git20171003.0.1be4557-1.1.debian.tar.xz | 2.6 KiB | 5968d7f85b5aecd056c26e231e6645afc3d15c963cd90e0d4403ece0ed97aafe |
Available diffs
No changes file available.
Binary packages built by this source
- golang-github-nebulouslabs-go-upnp-dev: Opinionated interface to Internet Gateway Devices
The upnp package upnp provides a simple and opinionated interface to
UPnP-enabled routers, allowing users to forward ports and discover their
external IP address.
.
Specific quirks:
.
- When attempting to discover UPnP-enabled routers on the network, only
the first such router is returned. If you have multiple routers, this may
cause some trouble. But why would you do that?
- Forwarded ports are always symmetric, e.g. the router's port 9980 will
be mapped to the client's port 9980. This will be unacceptable for some
purposes, but too bad. Symmetric mappings are the desired behavior 99%
of the time, and they save a function argument.
- TCP and UDP protocols are forwarded together.
- Ports are forwarded permanently. Some other implementations lease a port
mapping for a set duration, and then renew it periodically. This is nice,
because it means mappings won't stick around after they've served their
purpose. Unfortunately, some routers only support permanent mappings,
so this package has chosen to support the lowest common denominator. To
un-forward a port, you must use the Clear function (or do it manually).
.
Once you've discovered your router, you can retrieve its address by
calling its Location method. This address can be supplied to Load
to connect to the router directly, which is much faster than calling
Discover.
.
See the godoc (http://godoc.org/ github. com/NebulousLab s/upnp) for full
documentation.