diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2021-08-02 22:09:50 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2021-08-04 08:36:50 -0700 |
| commit | 5e0b58861860b1f2abd4f78cad5ad060e12ebb04 (patch) | |
| tree | cefcb24054f40791c503b23cabcf3b357d32d6cf /net/portmapper/disabled_stubs.go | |
| parent | 1db9032ff5dfd96e6bd2e1064226065d79d40561 (diff) | |
| download | tailscale-upnpdebug.tar.xz tailscale-upnpdebug.zip | |
net/portmapper: fix UPnP probing, work against all portsupnpdebug
Prior to Tailscale 1.12 it detected UPnP on any port.
Starting with Tailscale 1.11.x, it stopped detecting UPnP on all ports.
Then start plumbing its discovered Location header port number to the
code that was assuming port 5000.
Fixes #2109
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'net/portmapper/disabled_stubs.go')
| -rw-r--r-- | net/portmapper/disabled_stubs.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/portmapper/disabled_stubs.go b/net/portmapper/disabled_stubs.go index fb1572e78..f7003b0ed 100644 --- a/net/portmapper/disabled_stubs.go +++ b/net/portmapper/disabled_stubs.go @@ -15,10 +15,6 @@ import ( type upnpClient interface{} -func getUPnPClient(ctx context.Context, gw netaddr.IP) (upnpClient, error) { - return nil, nil -} - func (c *Client) getUPnPPortMapping( ctx context.Context, gw netaddr.IP, |
