*) 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
pull/1/head
theli 19 years ago
parent 5a25ad9109
commit 539f9e57aa

@ -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 {

Loading…
Cancel
Save