cmd/tsconnect/wasm: pass a netmon to ipnserver.New

It became required as of 6e967446e4

Updates #8052

Change-Id: I08d100534254865293c1beca5beff8e529e4e9ac
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/9396/head
Brad Fitzpatrick 1 year ago committed by Brad Fitzpatrick
parent 99bb355791
commit 6e66e5beeb

@ -126,7 +126,7 @@ func newIPN(jsConfig js.Value) map[string]any {
sys.NetstackRouter.Set(true) sys.NetstackRouter.Set(true)
logid := lpc.PublicID logid := lpc.PublicID
srv := ipnserver.New(logf, logid, nil /* no netMon */) srv := ipnserver.New(logf, logid, sys.NetMon.Get())
lb, err := ipnlocal.NewLocalBackend(logf, logid, sys, controlclient.LoginEphemeral) lb, err := ipnlocal.NewLocalBackend(logf, logid, sys, controlclient.LoginEphemeral)
if err != nil { if err != nil {
log.Fatalf("ipnlocal.NewLocalBackend: %v", err) log.Fatalf("ipnlocal.NewLocalBackend: %v", err)

Loading…
Cancel
Save