diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index 28fb556ae..4b056b733 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -105,16 +105,15 @@ export async function connectScryptedClient(options: ScryptedClientOptions): Pro let socket: IOClientSocket; const endpointPath = `/endpoint/${pluginId}`; const eioOptions: Partial = { - transports: ["websocket", "polling"], path: `${endpointPath}/engine.io/api`, extraHeaders, rejectUnauthorized: false, }; const explicitBaseUrl = baseUrl || `${window.location.protocol}//${window.location.host}`; + console.log('local address connection disabled'); if (window.location.hostname !== 'localhost' && !ip.isPrivate(window.location.hostname) && addresses && !addresses.includes(explicitBaseUrl)) { const publicEioOptions: Partial = { - transports: ["websocket", "polling"], path: `${endpointPath}/public/engine.io/api`, extraHeaders, rejectUnauthorized: false,