Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
adding proxy status to (private) status box (show also transparent and url proxy status)
regereaf596a2571b
diff --git a/htroot/Status.java b/htroot/Status.javaindex 68933ec9e..efe738d2d 100644--- a/htroot/Status.java+++ b/htroot/Status.java@@ -198,6 +198,7 @@ public class Statusprop.put("sslSupport", sb.getConfig("keyStore", "").isEmpty() || !sb.getConfigBool("server.https", false) ? 0 : 1);if (sb.getConfigBool("server.https", false)) prop.put("sslSupport_sslPort", sb.getHttpServer().getSslPort());+ // proxy informationif ( sb.getConfigBool("remoteProxyUse", false) ) {prop.put("remoteProxy", "1");prop.putXML("remoteProxy_host", sb.getConfig("remoteProxyHost", "<unknown>"));@@ -206,7 +207,9 @@ public class Status} else {prop.put("remoteProxy", "0"); // not used}-+ prop.put("info_isTransparentProxy", sb.getConfigBool("isTransparentProxy", false) ? "on" : "off");+ prop.put("info_proxyURL", sb.getConfigBool("proxyURL", false) ? "on" : "off");+// peer informationString thisHash = "";final String thisName = sb.peers.mySeed().getName();diff --git a/htroot/Status_p.inc b/htroot/Status_p.incindex affed50e4..9247fceb4 100644--- a/htroot/Status_p.inc+++ b/htroot/Status_p.inc@@ -42,9 +42,10 @@<dd>#[host]#:#[port]# (#(status)#broken::connected#(/status)#)</dd>#(/portForwarding)#- <dt>Remote Proxy</dt>- <dd>#(remoteProxy)#not used::#[host]#:#[port]# | Used for YaCy -> YaCy communication: #(4Yacy)#Yes::No #(/4Yacy)# #(/remoteProxy)#</dd>-+ <dt>Proxy</dt>+ <dd>Transparent <a href="Settings_p.html?page=http">#[info_isTransparentProxy]#</a> + URL <a href="AugmentedBrowsing_p.html">#[info_proxyURL]#</a></dd>+ <dd>Remote: <a href="Settings_p.html?page=proxy">#(remoteProxy)#not used::#[host]#:#[port]# | Used for YaCy -> YaCy communication: #(4Yacy)#Yes::No #(/4Yacy)# #(/remoteProxy)#</a></dd><dt>Auto-popup on start-up</dt><dd>#(popup)#@@ -77,7 +78,7 @@<dt><a href="Connections_p.html">Incoming Connections</a></dt><dd>Active: #[connectionsActive]# | Max: #[connectionsMax]#</dd>- <dt>Queues</dt>+ <dt><a href="Crawler_p.html">Queues</a></dt><dd><a href="IndexCreateLoaderQueue_p.html">Loader Queue</a>:<table>diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.javaindex 7144db267..7ace4a33d 100644--- a/htroot/yacysearchitem.java+++ b/htroot/yacysearchitem.java@@ -158,7 +158,7 @@ public class yacysearchitem {// START interactionString modifyURL = resultUrlstring;- if (sb.getConfigBool("proxyURL.useforresults", false)) {+ if (sb.getConfigBool("proxyURL.useforresults", false) && sb.getConfigBool("proxyURL", false)) {// check if url is allowed to viewif (sb.getConfig("proxyURL.rewriteURLs", "all").equals("all")) {modifyURL = "./proxy.html?url="+modifyURL;