ostinelli/misultin — pull request #73 by RJ (2011-11-18 18:23:39+00:00)
Title: Support PROXY protocol from stunnel etc

Adds a {proxy_protocol,true} option, causing misultin acceptors to read the
first line of a new socket connection for the PROXY line, as per:
http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt

This allows misultin to see the correct client IP, when behind stunnel - otherwise you just see the IP of the stunnel machine rather than the client IP.

HAProxy are standardizing on this now, so should make it easier to play nicely with haproxy, stunnel, stud and others.

Used in conjunction with the ws_force_ssl option I added, misultin works properly behind stunnel, websockets and all.