Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
adding convenient option for contacting peer on network page 4. can be used on creating new network. this page is hidden from the interface (not linked).
lotusc9cd03b53244
diff --git a/htroot/Network.html b/htroot/Network.htmlindex b8e19ff98..72e326ac2 100644--- a/htroot/Network.html+++ b/htroot/Network.html@@ -357,6 +357,20 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de</tr></table></form>++ <p> </p>++ Contacting current peer from another:+ <table>+ <tr>+ <td>ip:port</td>+ <td><input id="otherPeerAddress" type="text" size="32" maxlength="128" value=":8080" /></td>+ </tr>+ <tr>+ <td> </td>+ <td><input type="button" value="contact current peer from this peer" onclick="top.location.href='http://' + document.getElementById('otherPeerAddress').value + '/Network.html?peerHash=#[my-hash]#&peerIP=#[my-ip]#&peerPort=#[my-port]#&page=4&addPeer=add+Peer'"/></td>+ </tr>+ </table>#(/table)##%env/templates/footer.template%#</body>diff --git a/htroot/Network.java b/htroot/Network.javaindex 26d5d17f9..3e78cde15 100644--- a/htroot/Network.java+++ b/htroot/Network.java@@ -182,7 +182,13 @@ public class Network {prop.put("page", 0);} else if (post != null && Integer.parseInt(post.get("page", "1")) == 4) {prop.put("table", 4); // triggers overview- prop.put("page", 4);+ prop.put("page", 4);++ if (sb.peers.mySeed() != null) {+ prop.put("table_my-hash", sb.peers.mySeed().hash );+ prop.put("table_my-ip", sb.peers.mySeed().getIP() );+ prop.put("table_my-port", sb.peers.mySeed().getPort() );+ }if (post.containsKey("addPeer")) {