net/portmapper: enable for iOS

In the 1.27 unstable releases we set the min-version to iOS15,
which means we have 50 MBytes of RAM in the Network Extension.
https://tailscale.com/blog/go-linker/

Include the UPnP/NAT-PMP/PCP portmapper support now that there
is memory for it.

Fixes https://github.com/tailscale/tailscale/issues/2495
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:
Denton Gentry
2022-06-08 17:14:37 -07:00
committed by Denton Gentry
parent 2990c2b1cf
commit 7fffddce8e
3 changed files with 6 additions and 9 deletions

View File

@@ -2,10 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build ios || js
// +build ios js
// (https://github.com/tailscale/tailscale/issues/2495)
//go:build js
// +build js
package portmapper

View File

@@ -2,10 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !ios && !js
// +build !ios,!js
// (https://github.com/tailscale/tailscale/issues/2495)
//go:build !js
// +build !js
// (no raw sockets in JS/WASM)
package portmapper