mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-03 01:25:37 +00:00
fix: mobile, macos
macos
This commit is contained in:
@@ -33,7 +33,7 @@ pub fn get(
|
|||||||
|
|
||||||
#[cfg(all(target_os = "macos", not(feature = "macos-ne")))]
|
#[cfg(all(target_os = "macos", not(feature = "macos-ne")))]
|
||||||
{
|
{
|
||||||
use crate::dns::system_config::darwin::DarwinConfigurator;
|
use crate::dns::system::macos::DarwinConfigurator;
|
||||||
return Ok(Some(DarwinConfigurator::new().boxed()));
|
return Ok(Some(DarwinConfigurator::new().boxed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1383,12 +1383,9 @@ impl Instance {
|
|||||||
.await
|
.await
|
||||||
.with_context(|| "add ip failed")?;
|
.with_context(|| "add ip failed")?;
|
||||||
|
|
||||||
let magic_dns_runner = if let Some(ipv4) = global_ctx.get_ipv4() {
|
self.dns.start();
|
||||||
Self::create_magic_dns_runner(peer_manager.clone(), None, ipv4)
|
|
||||||
} else {
|
Self::use_new_nic_ctx(nic_ctx.clone(), new_nic_ctx).await;
|
||||||
None
|
|
||||||
};
|
|
||||||
Self::use_new_nic_ctx(nic_ctx.clone(), new_nic_ctx, magic_dns_runner).await;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user