Skip to content

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

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

sixcooler20f452d22809
diff --git a/.gitignore b/.gitignore
index f04e65817..277ddceff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ 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 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;