remove fqdn from DnsExportConfig

This commit is contained in:
Luna Yao
2026-04-19 00:19:24 +02:00
parent 6db0be00ad
commit cbb966d57c
3 changed files with 0 additions and 4 deletions
-1
View File
@@ -712,7 +712,6 @@ impl DnsGlobalCtxExt for GlobalCtx {
.filter(|z| z.policy.export.as_ref().is_some_and(|f| !f.disabled)) // TODO: check policies of parent zones
.map(Into::into)
.collect(),
fqdn: self.config.get_dns().get_fqdn().to_string(),
}
}
-2
View File
@@ -235,7 +235,6 @@ mod tests {
fn dns_peer_info_try_from_valid_config() {
let cfg = DnsExportConfig {
zones: vec![valid_zone_data("valid.peer.test", "10.0.0.10")],
fqdn: "valid.peer.test".to_string(),
};
let info = DnsPeerInfo::try_from(cfg).expect("valid export config should pass");
@@ -254,7 +253,6 @@ mod tests {
forwarders: vec![],
fallthrough: false,
}],
fqdn: "invalid.peer.test".to_string(),
};
assert!(DnsPeerInfo::try_from(cfg).is_err());
-1
View File
@@ -17,7 +17,6 @@ message GetExportConfigRequest {}
message GetExportConfigResponse {
repeated ZoneData zones = 1;
string fqdn = 2;
}
service DnsPeerMgrRpc {