MediaBrowser / Emby

Emby Server is a personal media server with apps on just about every device.
https://emby.media
GNU General Public License v2.0
3.99k stars 792 forks source link

`tun_device_fd` was passed correctly to the builder: #3834

Closed Saberian1992 closed 1 month ago

Saberian1992 commented 2 months ago

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 https://github.com/shadowsocks/shadowsocks-rust/issues/1433#issuecomment-1946643326