Skip to content

Commit

Permalink
*) Disabling RemoteProxy if remoteProxyName is null or empty
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@970 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Oct 23, 2005
1 parent 5a25ad9 commit 539f9e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/de/anomic/http/httpRemoteProxyConfig.java
Expand Up @@ -141,8 +141,11 @@ public static httpRemoteProxyConfig init(
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;
}
Expand All @@ -161,6 +164,9 @@ public static httpRemoteProxyConfig init(plasmaSwitchboard sb) {

// 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 {
Expand Down

0 comments on commit 539f9e5

Please sign in to comment.