*) correcting version number for remote port forwarding feature check

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@295 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 0405de7635
commit 9f5d239051

@ -147,7 +147,7 @@ public class yacyClient {
* *
* @see serverCore#portForwardingEnabled * @see serverCore#portForwardingEnabled
*/ */
if ((!serverCore.portForwardingEnabled) || (otherPeerVersion > (float)0.381)) { if ((!serverCore.portForwardingEnabled) || (otherPeerVersion > (float)0.383)) {
String mytype = (String) result.get("yourtype"); String mytype = (String) result.get("yourtype");
if (mytype == null) mytype = "junior"; if (mytype == null) mytype = "junior";
if ((yacyCore.seedDB.mySeed.get("PeerType", "junior").equals("principal")) && (mytype.equals("senior"))) mytype = "principal"; if ((yacyCore.seedDB.mySeed.get("PeerType", "junior").equals("principal")) && (mytype.equals("senior"))) mytype = "principal";

Loading…
Cancel
Save