Closed Saberian1992 closed 1 month ago
tun_device_fd was passed correctly to the builder:
tun_device_fd
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:
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?
tun
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 https://github.com/shadowsocks/shadowsocks-rust/issues/1433#issuecomment-1946643326
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 providedraw_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 https://github.com/shadowsocks/shadowsocks-rust/issues/1433#issuecomment-1946643326