cmd/tsconnect/wasm: register netstack.Impl with tsd.System

I missed this in 343c0f1031 and I guess we don't have integration
tests for wasm. But it compiled! :)

Updates #fixup to a #cleanup

Change-Id: If147b90bab254d144ec851a392e8db10ab97f98e
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/9373/head
Brad Fitzpatrick 1 year ago committed by Brad Fitzpatrick
parent 343c0f1031
commit eb9f1db269

@ -113,6 +113,7 @@ func newIPN(jsConfig js.Value) map[string]any {
if err != nil { if err != nil {
log.Fatalf("netstack.Create: %v", err) log.Fatalf("netstack.Create: %v", err)
} }
sys.Set(ns)
ns.ProcessLocalIPs = true ns.ProcessLocalIPs = true
ns.ProcessSubnets = true ns.ProcessSubnets = true

Loading…
Cancel
Save