From 78991416f137712a04d4f304623d74208180ffe8 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Tue, 26 May 2020 22:16:04 -0700 Subject: [PATCH] put file server onion requests behind a feature flag --- js/modules/loki_app_dot_net_api.js | 2 +- preload.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index a9c92933c..e6645cf69 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -385,7 +385,7 @@ const serverRequest = async (endpoint, options = {}) => { const host = url.host.toLowerCase(); // log.info('host', host, FILESERVER_HOSTS); if ( - window.lokiFeatureFlags.useOnionRequests && + window.lokiFeatureFlags.useFileOnionRequests && FILESERVER_HOSTS.includes(host) ) { mode = 'sendViaOnion'; diff --git a/preload.js b/preload.js index caab83f98..23bddf50c 100644 --- a/preload.js +++ b/preload.js @@ -416,6 +416,7 @@ window.lokiFeatureFlags = { privateGroupChats: true, useSnodeProxy: !process.env.USE_STUBBED_NETWORK, useOnionRequests: true, + useFileOnionRequests: false, onionRequestHops: 1, };