mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +00:00
config: filter out disabled export
This commit is contained in:
@@ -709,7 +709,7 @@ impl DnsGlobalCtxExt for GlobalCtx {
|
|||||||
DnsExportConfig {
|
DnsExportConfig {
|
||||||
zones: self
|
zones: self
|
||||||
.dns_iter_zones()
|
.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()
|
.map_into()
|
||||||
.collect(),
|
.collect(),
|
||||||
fqdn: self.config.get_dns().get_fqdn().to_string(),
|
fqdn: self.config.get_dns().get_fqdn().to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user