*) 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 (dstPort.intValue() == 80) {
if (dstHost.endsWith(".yacy")) { if (dstHost.endsWith(".yacy")) {
this.prop.setProperty(httpHeader.HOST,dstHostSocket); this.prop.setProperty("HOST",dstHostSocket);
} else { } else {
InetAddress dstHostAddress = InetAddress.getByName(dstHost); InetAddress dstHostAddress = InetAddress.getByName(dstHost);
if (!(dstHostAddress.isAnyLocalAddress() || dstHostAddress.isLoopbackAddress())) { 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; switchboard = (plasmaSwitchboard) sb;
cacheManager = switchboard.getCacheManager(); cacheManager = switchboard.getCacheManager();
isTransparentProxy = Boolean.valueOf(switchboard.getConfig("isTransparentProxy","false")).booleanValue();
// load remote proxy data // load remote proxy data
remoteProxyHost = switchboard.getConfig("remoteProxyHost",""); remoteProxyHost = switchboard.getConfig("remoteProxyHost","");
try { try {

Loading…
Cancel
Save