From 05ab7c4d6870f925b0e307ee2a7f5937c1ca9557 Mon Sep 17 00:00:00 2001 From: theli Date: Wed, 18 May 2005 09:45:27 +0000 Subject: [PATCH] *) Correcting Problems with "transparent proxy" mode. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@134 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpd.java | 4 ++-- source/de/anomic/http/httpdProxyHandler.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 {