mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-24 02:01:01 +00:00

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>