soheilhy / cmux

Connection multiplexer for GoLang: serve different services on the same port!
Apache License 2.0
2.53k stars 197 forks source link

Feature support proxy protocol #97

Open munding opened 1 year ago

munding commented 1 year ago

This feature can be used for servers listening behind HAProxy of load balancers(Nginx). Those load balancers support the use of a proxy protocol (http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt), which provides a simple mechansim for the server to get the address of the client instead of the load balancer.