mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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).
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7435 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
930cb412dd
commit
c9cd03b532
|
@ -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>
|
||||
|
|
|
@ -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")) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user