*) Correcting Problems with "transparent proxy" mode.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@134 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 042f171022
commit 05ab7c4d68

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

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

Loading…
Cancel
Save