diff --git a/tun/ipstack.wasm b/tun/ipstack.wasm index 11494db..fd96909 100644 Binary files a/tun/ipstack.wasm and b/tun/ipstack.wasm differ diff --git a/tun/tailscale.wasm b/tun/tailscale.wasm index c8f63ba..eb7b349 100755 Binary files a/tun/tailscale.wasm and b/tun/tailscale.wasm differ diff --git a/tun/tailscale_tun.js b/tun/tailscale_tun.js index 19466b3..53b2c70 100644 --- a/tun/tailscale_tun.js +++ b/tun/tailscale_tun.js @@ -29,7 +29,7 @@ export async function init() { const lazyRunIpn = async () => { const wasmUrl = new URL("tailscale.wasm", import.meta.url); const go = new window.Go(); - let {instance} = await fetch(wasmUrl).then(x => x.arrayBuffer()).then(x => WebAssembly.instantiate(x,go.importObject)); + let {instance} = await WebAssembly.instantiateStreaming(fetch(wasmUrl),go.importObject); go.run(instance); const sessionStateStorage = {