Author: nextgens
Date: 2006-08-13 16:20:23 +0000 (Sun, 13 Aug 2006)
New Revision: 10062
Modified:
trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
Log:
We want to be able to send n2nm to every "connected" peer, not only routable
ones
Modified: trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
2006-08-13 15:59:41 UTC (rev 10061)
+++ trunk/freenet/src/freenet/clients/http/DarknetConnectionsToadlet.java
2006-08-13 16:20:23 UTC (rev 10062)
@@ -304,7 +304,7 @@
peerRow.addChild("td", "class",
"peer-status").addChild("span", "class", peerNodeStatus.getStatusCSSName(),
statusString + (peerNodeStatus.isFetchingARK() ? "*" : ""));
// name column
- if ((peerNodeStatus.getStatusValue() ==
Node.PEER_NODE_STATUS_CONNECTED) &&
(Integer.parseInt(peerNodeStatus.getSimpleVersion()) > 476)) {
+ if (peerNodeStatus.isConnected() &&
(Integer.parseInt(peerNodeStatus.getSimpleVersion()) > 476)) {
peerRow.addChild("td", "class",
"peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" +
peerNodeStatus.hashCode(), peerNodeStatus.getName());
} else {
peerRow.addChild("td", "class",
"peer-name").addChild("#", peerNodeStatus.getName());