adding proxy status to (private) status box

(show also transparent and url proxy status)

show search result via url proxy only if status=on
pull/1/head
reger 11 years ago
parent 4c38bceafc
commit eaf596a257

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

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

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

Loading…
Cancel
Save