Watfaq / clash-rs

custom protocol network proxy
https://watfaq.gitbook.io/clashrs-user-manual/
Apache License 2.0
747 stars 57 forks source link

windows情况下tun模式无法使用 #396

Closed agczsz closed 3 weeks ago

agczsz commented 5 months ago

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

ibigbug commented 4 months ago

can you please provide more details?

agczsz commented 4 months ago

image image

agczsz commented 4 months ago

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 withRUST_BACKTRACE=1environment 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 }

VendettaReborn commented 4 months ago

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

VendettaReborn commented 4 months ago

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

ibigbug commented 3 weeks ago

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