Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Added --read-proxy option to require reading the HAProxy protocol line. #81
The read address is then passed to the backend server if --write-proxy or --write-ip is specified. This can be useful if you use HAProxy as your load balancer (in TCP mode) and run stud distributed on each of your servers and want the original client IP address.
Though it doesn't work with --write-ip and some other features, the recently merged --proxy-proxy looks like it provides the functionality that I wrote this modification to provide (passing the proxy data from HAProxy to the back-end), so anyone who was waiting for this can probably just use --proxy-proxy instead (depending on what exactly their back-end is).