server: remove port of address for system config

This commit is contained in:
Luna Yao
2026-03-31 17:31:42 +02:00
parent fe43b5706f
commit 484c264444
+2 -1
View File
@@ -227,7 +227,8 @@ impl DnsServer {
nameservers: addresses
.iter()
.filter_map(|a| {
(a.protocol == Protocol::Udp).then_some(a.addr.to_string())
(a.protocol == Protocol::Udp && a.addr.port() == 53)
.then_some(a.addr.ip().to_string())
})
.collect(),
search_domains: domain.clone(),