forked from I2P_Developers/i2p.i2p
Console: Fallback to receive MTU on MTU sort in SSU tab
This commit is contained in:
@@ -227,10 +227,12 @@ class UDPSorters {
|
||||
@Override
|
||||
public int compare(PeerState l, PeerState r) {
|
||||
int rv = l.getMTU() - r.getMTU();
|
||||
if (rv == 0) // fallback on alpha
|
||||
return super.compare(l, r);
|
||||
else
|
||||
return rv;
|
||||
if (rv == 0) {
|
||||
rv = l.getReceiveMTU() - r.getReceiveMTU();
|
||||
if (rv == 0) // fallback on alpha
|
||||
return super.compare(l, r);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user