tcpproxy
tcpproxy copied to clipboard
Fix defaults for --sourceip and --sourceport
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 ❤️