This commit is contained in:
lbl
2026-02-24 18:31:40 +08:00
parent ecdb359bbd
commit 5a31ad89f4
14 changed files with 2290 additions and 4 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ impl NetworkManager {
.await
}
#[cfg(not(target_os = "android"))]
pub async fn set_network_ip(&self, ip: Ipv4Addr, prefix_len: u8) -> anyhow::Result<()> {
pub async fn set_tun_network_ip(&self, ip: Ipv4Addr, prefix_len: u8) -> anyhow::Result<()> {
self.device_io_manager.set_network(ip, prefix_len).await?;
Ok(())
}