mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-06 20:49:46 +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")))]
|
||||
{
|
||||
use crate::dns::system_config::darwin::DarwinConfigurator;
|
||||
use crate::dns::system::macos::DarwinConfigurator;
|
||||
return Ok(Some(DarwinConfigurator::new().boxed()));
|
||||
}
|
||||
|
||||
|
||||
@@ -1383,12 +1383,9 @@ impl Instance {
|
||||
.await
|
||||
.with_context(|| "add ip failed")?;
|
||||
|
||||
let magic_dns_runner = if let Some(ipv4) = global_ctx.get_ipv4() {
|
||||
Self::create_magic_dns_runner(peer_manager.clone(), None, ipv4)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
Self::use_new_nic_ctx(nic_ctx.clone(), new_nic_ctx, magic_dns_runner).await;
|
||||
self.dns.start();
|
||||
|
||||
Self::use_new_nic_ctx(nic_ctx.clone(), new_nic_ctx).await;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user