allow proxy packets to be forwarded by system kernel

This commit is contained in:
L-Trump authored and Sijie.Sun committed 2025-03-08 12:56:49 +08:00
1 parent 03b55b61e7
commit 00d61333d3
6 files changed
+23 -1

No files matched your search

+3 -1
View File
@@ -65,7 +65,9 @@ impl IpProxy {
}
async fn start(&self) -> Result<(), Error> {
if (self.global_ctx.get_proxy_cidrs().is_empty() || self.started.load(Ordering::Relaxed))
if (self.global_ctx.get_proxy_cidrs().is_empty()
|| self.global_ctx.proxy_forward_by_system()
|| self.started.load(Ordering::Relaxed))
&& !self.global_ctx.enable_exit_node()
&& !self.global_ctx.no_tun()
{