mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-10-15 12:00:51 -04:00
Fix geolocation once again
This commit is contained in:
parent
bcb6e8b549
commit
f681beea0b
2 changed files with 2 additions and 3 deletions
|
@ -240,9 +240,7 @@ impl RouteSpecStore {
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
#[cfg(feature = "geolocation")]
|
#[cfg(feature = "geolocation")]
|
||||||
let country_code_denylist = self
|
let country_code_denylist = self.config().network.privacy.country_code_denylist.clone();
|
||||||
.config()
|
|
||||||
.with(|config| config.network.privacy.country_code_denylist.clone());
|
|
||||||
|
|
||||||
// Get list of all nodes, and sort them for selection
|
// Get list of all nodes, and sort them for selection
|
||||||
let cur_ts = Timestamp::now();
|
let cur_ts = Timestamp::now();
|
||||||
|
|
|
@ -147,6 +147,7 @@ pub trait HasDialInfoDetailList {
|
||||||
DialInfo::UDP(di) => di.socket_address.ip_addr(),
|
DialInfo::UDP(di) => di.socket_address.ip_addr(),
|
||||||
DialInfo::TCP(di) => di.socket_address.ip_addr(),
|
DialInfo::TCP(di) => di.socket_address.ip_addr(),
|
||||||
DialInfo::WS(di) => di.socket_address.ip_addr(),
|
DialInfo::WS(di) => di.socket_address.ip_addr(),
|
||||||
|
#[cfg(feature = "enable-protocol-wss")]
|
||||||
DialInfo::WSS(di) => di.socket_address.ip_addr(),
|
DialInfo::WSS(di) => di.socket_address.ip_addr(),
|
||||||
})
|
})
|
||||||
.map(geolocation::query_country_code)
|
.map(geolocation::query_country_code)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue