Skip to content

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

*) Correcting Problems with "transparent proxy" mode.

theli05ab7c4d6870
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index df8bcaf46..d10719b7f 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -214,11 +214,11 @@ public final class httpd implements serverHandler {
if (dstPort.intValue() == 80) {
if (dstHost.endsWith(".yacy")) {
- this.prop.setProperty(httpHeader.HOST,dstHostSocket);
+ this.prop.setProperty("HOST",dstHostSocket);
} else {
InetAddress dstHostAddress = InetAddress.getByName(dstHost);
if (!(dstHostAddress.isAnyLocalAddress() || dstHostAddress.isLoopbackAddress())) {
- this.prop.setProperty(httpHeader.HOST,dstHostSocket);
+ this.prop.setProperty("HOST",dstHostSocket);
}
}
}
diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.java
index b9928ffd2..066abfb08 100644
--- a/source/de/anomic/http/httpdProxyHandler.java
+++ b/source/de/anomic/http/httpdProxyHandler.java
@@ -128,6 +128,8 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
switchboard = (plasmaSwitchboard) sb;
cacheManager = switchboard.getCacheManager();
+ isTransparentProxy = Boolean.valueOf(switchboard.getConfig("isTransparentProxy","false")).booleanValue();
+
// load remote proxy data
remoteProxyHost = switchboard.getConfig("remoteProxyHost","");
try {