store DnsServer in GlobalCtx, load routes from DnsServer in ProxyCidrsMonitor

This commit is contained in:
Luna Yao
2026-04-06 11:54:02 +02:00
parent 3fc030de48
commit 86871b14d5
5 changed files with 29 additions and 3 deletions
+2 -2
View File
@@ -177,8 +177,8 @@ impl DnsServer {
}
}
pub fn routes(&self) -> HashSet<IpAddr> {
self.addresses.read().iter().map(|a| a.addr.ip()).collect()
pub fn addresses(&self) -> HashSet<SocketAddr> {
self.addresses.read().iter().map(|a| a.addr).collect()
}
async fn reload_listeners(