linix fix

This commit is contained in:
2026-03-20 13:38:39 +07:00
parent 8e79c6885f
commit 6edbda34f1
+1
View File
@@ -163,6 +163,7 @@ pub fn setup_platform_routing(remote_address: &str) -> io::Result<()> {
pub fn reset_platform_routing(proxy_ip: Option<&str>) -> io::Result<()> { pub fn reset_platform_routing(proxy_ip: Option<&str>) -> io::Result<()> {
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
{ {
let _ = run_cmd_ext("ip link delete netr0", true);
let _ = run_cmd_ext("ip rule del fwmark 0x1 table 100", true); let _ = run_cmd_ext("ip rule del fwmark 0x1 table 100", true);
let _ = run_cmd_ext("ip route flush table 100", true); let _ = run_cmd_ext("ip route flush table 100", true);
let _ = run_cmd_ext("nft delete table ip netrunner", true); let _ = run_cmd_ext("nft delete table ip netrunner", true);