mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-06 12:39:51 +00:00
remove fqdn from DnsExportConfig
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -17,7 +17,6 @@ message GetExportConfigRequest {}
|
||||
|
||||
message GetExportConfigResponse {
|
||||
repeated ZoneData zones = 1;
|
||||
string fqdn = 2;
|
||||
}
|
||||
|
||||
service DnsPeerMgrRpc {
|
||||
|
||||
Reference in New Issue
Block a user