Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tun_device_fd was passed correctly to the builder: #3834

Open
Saberian1992 opened this issue Apr 23, 2024 · 0 comments
Open

tun_device_fd was passed correctly to the builder: #3834

Saberian1992 opened this issue Apr 23, 2024 · 0 comments

Comments

@Saberian1992
Copy link

tun_device_fd was passed correctly to the builder:

https://github.com/shadowsocks/shadowsocks-rust/blob/65eb758ad426250f358a647ec99baab8fea722d8/crates/shadowsocks-service/src/local/mod.rs#L428-L429

which will be set to the tun_config:

https://github.com/shadowsocks/shadowsocks-rust/blob/65eb758ad426250f358a647ec99baab8fea722d8/crates/shadowsocks-service/src/local/tun/mod.rs#L70-L73

So the problem is: why tun didn't use the provided raw_fd?

Just look through https://github.com/meh/rust-tun/tree/master/src/platform , I realized that only iOS supports the raw_fd configuration. :(

Originally posted by @zonyitoo in shadowsocks/shadowsocks-rust#1433 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant