Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Bugfix for basic config redirection bug see: http://www.yacy-forum.de/viewtopic.php?p=23503
theli31b5d8980ed4
diff --git a/htroot/ConfigBasic.java b/htroot/ConfigBasic.javaindex 9aa64fa6b..8b989cefc 100644--- a/htroot/ConfigBasic.java+++ b/htroot/ConfigBasic.java@@ -135,9 +135,19 @@ public class ConfigBasic {// redirect the browser to the new portreconnect = true;++ String host = null;+ if (header.containsKey(httpHeader.HOST)) {+ host = (String)header.get(httpHeader.HOST);+ int idx = host.indexOf(":");+ if (idx != -1) host = host.substring(0,idx);+ } else {+ host = serverCore.publicLocalIP().getHostAddress();+ }+prop.put("reconnect", 1);- prop.put("reconnect_host", serverCore.publicLocalIP().getHostAddress());- prop.put("nextStep_host", serverCore.publicLocalIP().getHostAddress());+ prop.put("reconnect_host", host);+ prop.put("nextStep_host", host);prop.put("reconnect_port", port);prop.put("nextStep_port", port);prop.put("reconnect_sslSupport", theServerCore.withSSL() ? 1:0);