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

pull/1/head
sixcooler 12 years ago
parent 9551720d5c
commit 20f452d228

1
.gitignore vendored

@ -12,3 +12,4 @@ RELEASE/
lib/yacy-cora.jar
/DATA.bkp
/DATA.1
/gen

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

Loading…
Cancel
Save