PROXY protocol v1 and v2 support

see http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt