You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
privateasyncattemptConnection(params: Types.HttpConnectionParameters,): Promise<Response>{const{ address, tls =false}=params;this.portId=`${tls ? "https://" : "http://"}${address}`;// We create a dummy request here just to have a Response object to work with// The actual connection check is done via ping()constresponse=awaitfetch(`${this.portId}/hotspot-detect.html`,{signal: this.abortController.signal,mode: "no-cors",});if(!response.ok){thrownewError(`HTTP ${response.status}: ${response.statusText}`);}returnresponse;}