Console: Fallback to receive MTU on MTU sort in SSU tab

This commit is contained in:
zzz
2022-12-07 16:57:56 -05:00
parent 855bb2af33
commit 2e6a4930a0

View File

@@ -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;
}
}