Fix geolocation once again

This commit is contained in:
neequ57 2025-10-09 15:36:48 +00:00 committed by Christien Rioux
parent bcb6e8b549
commit f681beea0b
2 changed files with 2 additions and 3 deletions

View file

@ -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();

View file

@ -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)