From 539f9e57aaac2ab16e6e7d9e0200980e07dca307 Mon Sep 17 00:00:00 2001 From: theli Date: Sun, 23 Oct 2005 09:03:40 +0000 Subject: [PATCH] *) Disabling RemoteProxy if remoteProxyName is null or empty git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@970 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpRemoteProxyConfig.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/http/httpRemoteProxyConfig.java b/source/de/anomic/http/httpRemoteProxyConfig.java index 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 name newConfig.remoteProxyHost = sb.getConfig("remoteProxyHost", "").trim(); + if ((newConfig.remoteProxyHost == null) || (newConfig.remoteProxyHost.length() == 0)) { + newConfig.remoteProxyUse = false; + } // reading the proxy host port try {