Skip to content
Snippets Groups Projects
Commit 3724d899 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

jamiaccount: don't load proxy list if proxy is disabled

Change-Id: Id60ad54c256b6597bda16880169d1d8c4d4d0690
parent 54c86661
No related branches found
No related tags found
No related merge requests found
......@@ -2228,7 +2228,7 @@ JamiAccount::loadCachedUrl(const std::string& url,
void
JamiAccount::loadCachedProxyServer(std::function<void(const std::string& proxy)> cb)
{
if (proxyServerCached_.empty()) {
if (proxyEnabled_ and proxyServerCached_.empty()) {
JAMI_DBG("[Account %s] loading DHT proxy URL", getAccountID().c_str());
if (proxyListUrl_.empty()) {
cb(getDhtProxyServer(proxyServer_));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment