tailscale/net/portmapper
julianknodt 3a4201e773 net/portmapper: return correct upnp port
Previously, this was incorrectly returning the internal port, and using that with the external
exposed IP when it did not use WANIPConnection2. In the case when we must provide a port, we
return it instead.

Noticed this while implementing the integration test for upnp.

Signed-off-by: julianknodt <julianknodt@gmail.com>
2021-07-21 10:11:47 -07:00
..
portmapper_test.go net/portmapper: add upnp port mapping 2021-07-15 15:22:12 -07:00
portmapper.go net/portmapper: add upnp port mapping 2021-07-15 15:22:12 -07:00
upnp.go net/portmapper: return correct upnp port 2021-07-21 10:11:47 -07:00