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

Add ProxySocket::as_raw_fd #1625

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

dlon
Copy link
Contributor

@dlon dlon commented Aug 26, 2024

I need this in order to pass the file descriptor to VpnService.protect.

@dlon dlon force-pushed the expose-socket-fd branch from bf17d5a to f0e268f Compare August 26, 2024 19:12
@dlon
Copy link
Contributor Author

dlon commented Aug 26, 2024

I've now discovered vpn_protect_path! However, in our case, it makes more sense to obtain the fd directly than to pass it over a UDS, and I'm sure there are other use cases as well.

@dlon dlon changed the title Add method for retrieving raw outbound socket fd to ProxySocket Add ProxySocket::as_raw_fd Aug 26, 2024
@zonyitoo zonyitoo merged commit d34e9b7 into shadowsocks:master Aug 27, 2024
9 checks passed
@dlon dlon deleted the expose-socket-fd branch August 27, 2024 05:07
@dlon
Copy link
Contributor Author

dlon commented Aug 27, 2024

@zonyitoo Thank you. Can you please also make a release for this?

@zonyitoo
Copy link
Collaborator

I am quite busy these days. I will try to make it published ASAP.

@zonyitoo
Copy link
Collaborator

zonyitoo commented Sep 7, 2024

Released shadowsocks v1.20.3.

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

Successfully merging this pull request may close these issues.

2 participants