fixed node type calculation for principal peers

pull/1/head
Michael Peter Christen 13 years ago
parent 7ec7341f60
commit d3f243e2e1

@ -273,7 +273,7 @@ public final class Protocol
} else { } else {
final String myIP = result.get("yourip"); final String myIP = result.get("yourip");
final String properIP = Seed.isProperIP(myIP); final String properIP = Seed.isProperIP(myIP);
mySeed.setFlagRootNode(mytype.equals(Seed.PEERTYPE_SENIOR) && responseTime < 1000 && Domains.isThisHostIP(myIP)); mySeed.setFlagRootNode((mytype.equals(Seed.PEERTYPE_SENIOR) || mytype.equals(Seed.PEERTYPE_PRINCIPAL)) && responseTime < 1000 && Domains.isThisHostIP(myIP));
if ( properIP == null ) { if ( properIP == null ) {
mySeed.setIP(myIP); mySeed.setIP(myIP);
} }

Loading…
Cancel
Save