From 308d73f8558dbcc28352666a982a5526cad71d9e Mon Sep 17 00:00:00 2001 From: sixcooler Date: Thu, 4 Jul 2013 19:16:13 +0200 Subject: [PATCH] do not use remote proxy if not switched on - regardless of the proto --- source/net/yacy/cora/protocol/http/ProxySettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/cora/protocol/http/ProxySettings.java b/source/net/yacy/cora/protocol/http/ProxySettings.java index 2c891a32d..6bb11623d 100644 --- a/source/net/yacy/cora/protocol/http/ProxySettings.java +++ b/source/net/yacy/cora/protocol/http/ProxySettings.java @@ -85,7 +85,7 @@ public final class ProxySettings { */ public static boolean useForHost(final String host, Protocol protocol) { assert protocol != null; - if (protocol == Protocol.HTTP && !use) return false; + if (!use) return false; if (protocol == Protocol.HTTPS && !use4ssl) return false; if (protocol == Protocol.YACY && !use4YaCy) return false; if (allowProxy.containsKey(host)) return true;