Skip to content

Fix defaults for --sourceip and --sourceport#45

Merged
ickerwx merged 1 commit intoickerwx:masterfrom
hrzlgnm:master
May 29, 2024
Merged

Fix defaults for --sourceip and --sourceport#45
ickerwx merged 1 commit intoickerwx:masterfrom
hrzlgnm:master

Conversation

@hrzlgnm
Copy link
Copy Markdown
Contributor

@hrzlgnm hrzlgnm commented Aug 24, 2023

Use falsy values by default, otherwise the proxy thread will always attempt to bind to 0.0.0.0:8080 which in many cases might be already in use. Also make the condition an or condition to allow binding to a local ip or a port.

The addition of the --sourceip and --sourceport broke my local setup where I use a custom module to fix hddtemp network output for a specific samsung drive by removing the garbage from a non properly null terminated string.

Please let me know if there is any problem with this Pull Request.

Thank you for providing such an easy to use tool to write custom tcp proxy ❤️

Use falsy values by default, otherwise the proxy thread will always attempt to bind
to 0.0.0.0:8080 which in many cases might be already in use.
@ickerwx
Copy link
Copy Markdown
Owner

ickerwx commented May 29, 2024

Hey, sorry for the late response, I took a little time off from programming as a hobby. You know, I just realized that I actually always explicitly specify -sp and -si, so I never noticed the fact that I a) used 8080 as default for two different sockets, and b) never figured that somebody might not use these parameters.

Thanks for the pull request, it's very much appreciated and I hope my little tool helped you or maybe even continues to help you. All the best.

@ickerwx ickerwx merged commit df3383c into ickerwx:master May 29, 2024
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