From 1df928c57cc697cea606e6fa5e090e6eae34d8e7 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Fri, 17 Dec 2021 19:26:42 +0400 Subject: [PATCH] Fix HTTPS-only --- webpack.common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index 4aae7ee6..39b30874 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -17,8 +17,8 @@ if(devMode) { console.log('DEVMODE IS ON!'); } -const MTPROTO_HTTP = false; -const MTPROTO_AUTO = true; +const MTPROTO_HTTP = true; +const MTPROTO_AUTO = false; const opts = { MTPROTO_WORKER: true, @@ -26,7 +26,7 @@ const opts = { MTPROTO_HTTP: MTPROTO_HTTP, MTPROTO_HTTP_UPLOAD: false, MTPROTO_AUTO: MTPROTO_AUTO, // use HTTPS when WS is unavailable - MTPROTO_HAS_HTTP: MTPROTO_AUTO, + MTPROTO_HAS_HTTP: MTPROTO_AUTO || MTPROTO_HTTP, MTPROTO_HAS_WS: MTPROTO_AUTO || !MTPROTO_HTTP, DEBUG: devMode, version: 3,