Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

adding proxy status to (private) status box (show also transparent and url proxy status)

regereaf596a2571b
diff --git a/htroot/Status.java b/htroot/Status.java
index 68933ec9e..efe738d2d 100644
--- a/htroot/Status.java
+++ b/htroot/Status.java
@@ -198,6 +198,7 @@ public class Status
prop.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 information
if ( 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 information
String thisHash = "";
final String thisName = sb.peers.mySeed().getName();
diff --git a/htroot/Status_p.inc b/htroot/Status_p.inc
index 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>&nbsp;&nbsp;
+ 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.java
index 7144db267..7ace4a33d 100644
--- a/htroot/yacysearchitem.java
+++ b/htroot/yacysearchitem.java
@@ -158,7 +158,7 @@ public class yacysearchitem {
// START interaction
String modifyURL = resultUrlstring;
- if (sb.getConfigBool("proxyURL.useforresults", false)) {
+ if (sb.getConfigBool("proxyURL.useforresults", false) && sb.getConfigBool("proxyURL", false)) {
// check if url is allowed to view
if (sb.getConfig("proxyURL.rewriteURLs", "all").equals("all")) {
modifyURL = "./proxy.html?url="+modifyURL;