mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-10-14 11:30:37 -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<_>>();
|
||||
|
||||
#[cfg(feature = "geolocation")]
|
||||
let country_code_denylist = self
|
||||
.config()
|
||||
.with(|config| config.network.privacy.country_code_denylist.clone());
|
||||
let country_code_denylist = self.config().network.privacy.country_code_denylist.clone();
|
||||
|
||||
// Get list of all nodes, and sort them for selection
|
||||
let cur_ts = Timestamp::now();
|
||||
|
|
|
@ -147,6 +147,7 @@ pub trait HasDialInfoDetailList {
|
|||
DialInfo::UDP(di) => di.socket_address.ip_addr(),
|
||||
DialInfo::TCP(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(),
|
||||
})
|
||||
.map(geolocation::query_country_code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue