diff --git a/package.json b/package.json index 3c8af91..b601604 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@fastify/static": "^6.12.0", "@mercuryworkshop/bare-mux": "^1.0.5", "@mercuryworkshop/epoxy-transport": "^1.1.0", - "@mercuryworkshop/libcurl-transport": "^1.2.1", + "@mercuryworkshop/libcurl-transport": "^1.2.2", "@nebula-services/dynamic": "0.7.2-patch.2", "@titaniumnetwork-dev/ultraviolet": "^3.0.0", "@tomphttp/bare-server-node": "2.0.3", diff --git a/src/util/transports.ts b/src/util/transports.ts index bd16c8d..b56661f 100644 --- a/src/util/transports.ts +++ b/src/util/transports.ts @@ -16,7 +16,7 @@ function changeTransport(transport: string, wispUrl: string) { console.log("Setting transport to Libcurl"); SetTransport("CurlMod.LibcurlClient", { wisp: wispUrl, - wasm: "https://cdn.jsdelivr.net/npm/libcurl.js@v0.5.2/libcurl.wasm" + wasm: "https://cdn.jsdelivr.net/npm/libcurl.js@v0.5.3/libcurl.wasm" }); break; case "bare": @@ -46,17 +46,9 @@ const wispUrl = "/wisp/"; registerRemoteListener(navigator.serviceWorker.controller!); -if (isIOS) { - console.log("iOS device detected. Bare will be used."); - changeTransport( - localStorage.getItem("transport") || "libcurl", - localStorage.getItem("wispUrl") || wispUrl - ); -} else { - changeTransport( - localStorage.getItem("transport") || "bare", - localStorage.getItem("wispUrl") || wispUrl - ); -} +changeTransport( + localStorage.getItem("transport") || "libcurl", + localStorage.getItem("wispUrl") || wispUrl +); export { changeTransport, getTransport };