allow proxy packets to be forwarded by system kernel

This commit is contained in:
L-Trump
2025-03-08 01:08:21 +08:00
committed by Sijie.Sun
parent 03b55b61e7
commit 00d61333d3
6 changed files with 23 additions and 1 deletions
+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()
{