bump version to v2.3.0 (#859)

also some improvements:

1. add magic dns option in gui.
2. allow icmp proxy fail on android
3. when no_tun is enabled, android do not start vpn service

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
Sijie.Sun
2025-05-18 16:45:39 +08:00
committed by GitHub
parent 7c6daf7c56
commit 83d1ecc4da
18 changed files with 122 additions and 80 deletions

View File

@@ -80,7 +80,13 @@ impl IpProxy {
self.started.store(true, Ordering::Relaxed);
self.tcp_proxy.start(true).await?;
self.icmp_proxy.start().await?;
if let Err(e) = self.icmp_proxy.start().await {
tracing::error!("start icmp proxy failed: {:?}", e);
if cfg!(not(target_os = "android")) {
// android may not support icmp proxy
return Err(e);
}
}
self.udp_proxy.start().await?;
Ok(())
}

View File

@@ -668,6 +668,10 @@ impl NetworkConfig {
flags.disable_udp_hole_punching = disable_udp_hole_punching;
}
if let Some(enable_magic_dns) = self.enable_magic_dns {
flags.accept_dns = enable_magic_dns;
}
if let Some(mtu) = self.mtu {
flags.mtu = mtu as u32;
}

View File

@@ -63,6 +63,8 @@ message NetworkConfig {
optional bool disable_udp_hole_punching = 39;
optional int32 mtu = 40;
repeated string mapped_listeners = 41;
optional bool enable_magic_dns = 42;
}
message MyNodeInfo {