tun2proxy / rust-tun

TUN device creation and handling.
https://docs.rs/tun2/
30 stars 13 forks source link

Configure whether fd should be closed on drop #66

Closed neacsu closed 2 months ago

neacsu commented 2 months ago

When the file descriptor is provided via the configuration, it is not necessarily true that the file descriptor should be closed by the tun2 library, as it might be used outside of its scope.

To enable more flexibility, configure whether the closing should happen in the library or be left as the responsability of the user.

ssrlive commented 2 months ago

Thanks.