Fix HTTPS-only

This commit is contained in:
morethanwords 2021-12-17 19:26:42 +04:00
parent 9ada6ede05
commit 1df928c57c

View File

@ -17,8 +17,8 @@ if(devMode) {
console.log('DEVMODE IS ON!'); console.log('DEVMODE IS ON!');
} }
const MTPROTO_HTTP = false; const MTPROTO_HTTP = true;
const MTPROTO_AUTO = true; const MTPROTO_AUTO = false;
const opts = { const opts = {
MTPROTO_WORKER: true, MTPROTO_WORKER: true,
@ -26,7 +26,7 @@ const opts = {
MTPROTO_HTTP: MTPROTO_HTTP, MTPROTO_HTTP: MTPROTO_HTTP,
MTPROTO_HTTP_UPLOAD: false, MTPROTO_HTTP_UPLOAD: false,
MTPROTO_AUTO: MTPROTO_AUTO, // use HTTPS when WS is unavailable 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, MTPROTO_HAS_WS: MTPROTO_AUTO || !MTPROTO_HTTP,
DEBUG: devMode, DEBUG: devMode,
version: 3, version: 3,