mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-07 08:07:42 +00:00
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:
parent
2990c2b1cf
commit
7fffddce8e
@ -2,10 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build ios || js
|
//go:build js
|
||||||
// +build ios js
|
// +build js
|
||||||
|
|
||||||
// (https://github.com/tailscale/tailscale/issues/2495)
|
|
||||||
|
|
||||||
package portmapper
|
package portmapper
|
||||||
|
|
||||||
|
@ -2,10 +2,9 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !ios && !js
|
//go:build !js
|
||||||
// +build !ios,!js
|
// +build !js
|
||||||
|
// (no raw sockets in JS/WASM)
|
||||||
// (https://github.com/tailscale/tailscale/issues/2495)
|
|
||||||
|
|
||||||
package portmapper
|
package portmapper
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ func TestDeps(t *testing.T) {
|
|||||||
}
|
}
|
||||||
for _, dep := range res.Deps {
|
for _, dep := range res.Deps {
|
||||||
switch dep {
|
switch dep {
|
||||||
case "regexp", "regexp/syntax", "text/template", "html/template":
|
case "text/template", "html/template":
|
||||||
t.Errorf("package %q is not allowed as a dependency on iOS", dep)
|
t.Errorf("package %q is not allowed as a dependency on iOS", dep)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user