Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Configure whether fd should be closed on drop #66

Merged
merged 3 commits into from
Apr 14, 2024
Merged

Conversation

neacsu
Copy link

@neacsu neacsu commented Apr 11, 2024

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.

neacsu and others added 3 commits April 11, 2024 18:50
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
Copy link
Owner

ssrlive commented Apr 14, 2024

Thanks.

@ssrlive ssrlive merged commit 96cb935 into ssrlive:v2 Apr 14, 2024
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants