Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Revert "do not use remote proxy if not switched on - regardless of the proto"

sixcooler69906b1d2e00
diff --git a/.gitignore b/.gitignore
index 277ddceff..f04e65817 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,4 +12,3 @@ RELEASE/
lib/yacy-cora.jar
/DATA.bkp
/DATA.1
-/gen
diff --git a/source/net/yacy/cora/protocol/http/ProxySettings.java b/source/net/yacy/cora/protocol/http/ProxySettings.java
index 6bb11623d..2c891a32d 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 (!use) return false;
+ if (protocol == Protocol.HTTP && !use) return false;
if (protocol == Protocol.HTTPS && !use4ssl) return false;
if (protocol == Protocol.YACY && !use4YaCy) return false;
if (allowProxy.containsKey(host)) return true;