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

Transparent mode in a multi-stage chain will fail after the first step #408

Merged
merged 1 commit into from
Oct 7, 2023

Conversation

pcrow
Copy link

@pcrow pcrow commented Oct 6, 2023

Transparent mode in a multi-stage chain will fail after the first step because the (ip,port) is already bound. With this change, the bind is retried with a different port to at least keep the same IP address, which for most uses is all that is needed. I've tested this on my own system where sslh is used downstream from stunnel, with both in transparent mode.

This has been discussed in issue 379.

because the (ip,port) is already bound.  With this change, the bind is
retried with a different port to at least keep the same IP address, which
for most uses is all that is needed.  I've tested this on my own system
where sslh is used downstream from stunnel, with both in transparent mode.
@yrutschle yrutschle merged commit 92d2326 into yrutschle:master Oct 7, 2023
1 check passed
@yrutschle
Copy link
Owner

thanks for the contribution!

@pcrow
Copy link
Author

pcrow commented Oct 7, 2023

thanks for the contribution!

Hooray! It feels awesome to have a patch accepted into a piece of software that I use. I'm glad I dug into this until I found out why it wasn't behaving as I expected.

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