MEDIUM: connection: add support for proxy protocol v2 in accept-proxy
authorWilly Tarreau <w@1wt.eu>
Sat, 14 Jun 2014 09:06:17 +0000 (11:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Jun 2014 09:46:03 +0000 (11:46 +0200)
commit7799267f43f9d2b32c69193408754c93827c31d7
treee1249aef885e8cacfd40f92451c1416ae3bd2410
parent8fccfa256ebf496e4835bb61b54c4ef28ac90608
MEDIUM: connection: add support for proxy protocol v2 in accept-proxy

The "accept-proxy" statement of bind lines was still limited to version
1 of the protocol, while send-proxy-v2 is now available on the server
lines. This patch adds support for parsing v2 of the protocol on incoming
connections. The v2 header is automatically recognized so there is no
need for a new option.
doc/configuration.txt
src/connection.c