mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 01:03:54 +00:00
make dns Option
This commit is contained in:
@@ -82,10 +82,7 @@ impl DnsConfig {
|
||||
#[auto_impl::auto_impl(Box, &)]
|
||||
pub trait DnsConfigLoaderExt {
|
||||
fn get_dns(&self) -> DnsConfig;
|
||||
fn set_dns(&self, dns: DnsConfig);
|
||||
|
||||
fn get_fqdn(&self) -> String;
|
||||
fn set_fqdn(&self, fqdn: &str);
|
||||
fn set_dns(&self, dns: Option<DnsConfig>);
|
||||
}
|
||||
|
||||
pub type DnsExportConfig = GetExportConfigResponse;
|
||||
|
||||
@@ -39,7 +39,7 @@ pub async fn prepare_env_with_tld_dns_zone(
|
||||
if let Some(zone) = tld_dns_zone {
|
||||
dns_config.domain = zone.parse().expect("invalid test dns zone");
|
||||
}
|
||||
ctx.config.set_dns(dns_config);
|
||||
ctx.config.set_dns(Some(dns_config));
|
||||
|
||||
let (s, r) = create_packet_recv_chan();
|
||||
let peer_mgr = Arc::new(PeerManager::new(RouteAlgoType::Ospf, ctx, s));
|
||||
|
||||
Reference in New Issue
Block a user