mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-09 20:26:15 -08:00
config: filter out disabled export
This commit is contained in:
1 parent
501c2bdb73
commit
847e82ff8c
1 file changed
+1
-1
@@ -709,7 +709,7 @@ impl DnsGlobalCtxExt for GlobalCtx {
|
||||
DnsExportConfig {
|
||||
zones: self
|
||||
.dns_iter_zones()
|
||||
.filter(|z| z.policy.export.is_some()) // TODO: check policies of parent zones
|
||||
.filter(|z| z.policy.export.as_ref().is_some_and(|f| !f.disabled)) // TODO: check policies of parent zones
|
||||
.map_into()
|
||||
.collect(),
|
||||
fqdn: self.config.get_dns().get_fqdn().to_string(),
|
||||
|
||||
Reference in new issue
Block a user