iHsin

Results 59 comments of iHsin

其实我本来的想法是提供一个文本输入框,允许输入自定义命令,奈何我对前端不是很熟悉,写不出来

> Tauri v1 的 sidecar 除了提供打包支持外,还内嵌了进程管理功能(通过 Drop trait 担保了在退出程序时会清理 Clash 进程)。 所以实际上tauri的`Command::new`和`Command::new_sidecar`不仅仅是二进制查找路径的不同,后者还附带提供了进程管理功能而前者没有? > 因为内嵌四个内核导致安装包过于庞大,所以我们内部有讨论过:在未来修改内核的引入方式,变成可选内核的模式,这样可以大幅减小安装包大小。 这不是本pr的目的,本pr更倾向与保留内嵌内核 > > 我更倾向与使用包管理器管理内核 > > 这个显然不现实,除了 Linux,其他发行版都没有集成合适的包管理器,所以内置内核还是比较合适的。 Same as above. 本pr的用例是这样的: 包管理器(或`cargo install`)安装的二进制往往更定制化,比如使用更多cpu指令集,启用或不启用某些feature等等,让nyan使用它们便是本pr的目的 > >...

> Shall we extract the logic of auto-detect interface, auto setup routes into a independent crate? just like sing-tun? i would like call it `watfaq-tun` : ) It will combine...

> any updates? 最近挺忙的,大概到六月初才有时间

> [watfaq-tun](https://github.com/VendettaReborn/watfaq-tun). code equivalent for `ip route` & 'ip rule' [commands](https://github.com/automesh-network/netstack-smoltcp/blob/main/scripts/route-linux.sh). But with supports of ipv6. Now works on linux&macos. I dont think we need net_route crate(at least on linux)....

> of course, global routing on linux is easy, your impl of fwmark is surely sufficient, but what about macos and windows? I don't expect most of our users to...

list some links as tproxy and tun reference - https://github.com/Watfaq/netstack-smoltcp - https://manpages.debian.org/testing/iproute2/ip.8.en.html - https://manpages.debian.org/testing/nftables/nft.8.en.html - https://manpages.debian.org/testing/iproute2/ip-rule.8.en.html - https://manpages.debian.org/testing/iproute2/ip-route.8.en.html - https://manpages.debian.org/testing/ipset/ipset.8.en.html - https://man7.org/linux/man-pages/man7/rtnetlink.7.html

Clash-rs cannot be compiled to my mips router. Tproxy seems not that necessary to me(temporarily)

> see this https://en.clash.wiki/advanced-usages/wireguard.html We should allow overwriting the global mark by setting `routing-mark` in proxy conf? Only use global mark when `routing-mark` is empty?

@ibigbug @VendettaReborn please check the major change in `clash_lib/src/session.rs` `clash_lib/src/proxy/utils/socket_helpers.rs`