fix: mobile, macos

macos
This commit is contained in:
Luna Yao
2026-04-03 16:07:33 +02:00
parent 8da5dc5f6e
commit 7c895c401b
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -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(())
}