clash-rs icon indicating copy to clipboard operation
clash-rs copied to clipboard

windows情况下tun模式无法使用

Open agczsz opened this issue 10 months ago • 5 comments

10.0.1.254ip发送大量请求,并且无法代理系统流量

agczsz avatar May 03 '24 04:05 agczsz

can you please provide more details?

ibigbug avatar May 04 '24 14:05 ibigbug

image image

agczsz avatar May 05 '24 04:05 agczsz

here is the error log:thread 'tokio-runtime-worker' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-util-0.3.30\src\future\select_all.rs:40:5: assertion failed: !ret.inner.is_empty() note: run with RUST_BACKTRACE=1 environment variable to display a backtrace 2024-05-05T14:08:29.202528Z ERROR clash_lib\src\lib.rs:157: panic hook: PanicInfo { payload: Any { .. }, message: Some(assertion failed: !ret.inner.is_empty()), location: Location { file: "C:\\Users\\runneradmin\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\futures-util-0.3.30\\src\\future\\select_all.rs", line: 40, col: 5 }, can_unwind: true, force_no_backtrace: false }

agczsz avatar May 07 '24 04:05 agczsz

@agczsz 目前 tun 还没有配置系统的路由表,所以无法代理所有流量,可以通过 route print -4 来确认下

VendettaReborn avatar May 14 '24 05:05 VendettaReborn

I've seen some crate on ip configuration for windows, the POC on netstack-smoltcp's example code is ok, but still needs some time to integrate it into clash-rs @ibigbug

VendettaReborn avatar May 20 '24 05:05 VendettaReborn

the tun is working now. auto route is yet to be implemented

ibigbug avatar Sep 05 '24 05:09 ibigbug