Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Disabling RemoteProxy if remoteProxyName is null or empty
theli539f9e57aaac
diff --git a/source/de/anomic/http/httpRemoteProxyConfig.java b/source/de/anomic/http/httpRemoteProxyConfig.javaindex b94689e7c..1704a131c 100644--- a/source/de/anomic/http/httpRemoteProxyConfig.java+++ b/source/de/anomic/http/httpRemoteProxyConfig.java@@ -141,8 +141,11 @@ public final class httpRemoteProxyConfig {newConfig.remoteProxyUse = true;newConfig.remoteProxyUse4SSL = true;newConfig.remoteProxyUse4Yacy = true;- newConfig.remoteProxyHost = proxyHostName;newConfig.remoteProxyPort = proxyHostPort;+ newConfig.remoteProxyHost = proxyHostName;+ if ((newConfig.remoteProxyHost == null) || (newConfig.remoteProxyHost.length() == 0)) {+ newConfig.remoteProxyUse = false;+ }return newConfig;}@@ -161,6 +164,9 @@ public final class httpRemoteProxyConfig {// reading the proxy host namenewConfig.remoteProxyHost = sb.getConfig("remoteProxyHost", "").trim();+ if ((newConfig.remoteProxyHost == null) || (newConfig.remoteProxyHost.length() == 0)) {+ newConfig.remoteProxyUse = false;+ }// reading the proxy host porttry {