From cb2fd5be922eb048c2f4f85a529082b1913a9dbd Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 9 May 2023 21:14:41 -0700 Subject: [PATCH] cmd/tsconnect: fix forgotten API change for wasm Fix regression from 6e967446e41 Updates #8036 Signed-off-by: Brad Fitzpatrick --- cmd/tsconnect/wasm/wasm_js.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tsconnect/wasm/wasm_js.go b/cmd/tsconnect/wasm/wasm_js.go index 153941b29..e8d6b665c 100644 --- a/cmd/tsconnect/wasm/wasm_js.go +++ b/cmd/tsconnect/wasm/wasm_js.go @@ -101,7 +101,8 @@ func newIPN(jsConfig js.Value) map[string]any { sys.Set(store) dialer := &tsdial.Dialer{Logf: logf} eng, err := wgengine.NewUserspaceEngine(logf, wgengine.Config{ - Dialer: dialer, + Dialer: dialer, + SetSubsystem: sys.Set, }) if err != nil { log.Fatal(err)