mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 21:18:08 +01:00
Return Optional.empty() for present-but-not-routed IPs.
This commit is contained in:
committed by
Jon Chambers
parent
b89de860d3
commit
94ac3f6cc8
@@ -71,7 +71,8 @@ class AsnTable {
|
||||
|
||||
return Optional.ofNullable(asnBlocksByFirstIp.floorEntry(addressAsLong))
|
||||
.filter(entry -> entry.getValue().contains(addressAsLong))
|
||||
.map(entry -> entry.getValue().getAsn());
|
||||
.map(entry -> entry.getValue().getAsn())
|
||||
.filter(asn -> asn != 0);
|
||||
}
|
||||
|
||||
public Optional<String> getCountryCode(final long asn) {
|
||||
|
||||
Reference in New Issue
Block a user