mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-08 19:06:14 -08:00
server: remove port of address for system config
This commit is contained in:
1 parent
fe43b5706f
commit
484c264444
1 file changed
+2
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user