MEDIUM: proxy_protocol: Convert IPs to v6 when protocols are mixed
authorTim Duesterhus <tim@bastelstu.be>
Fri, 27 Jul 2018 16:46:13 +0000 (18:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Jul 2018 09:23:30 +0000 (11:23 +0200)
commit7fec02153712e5d823ec7a7593b7af0963111a6f
treea17a30628da4e349267103b045b1491cc4b00d23
parentc477b6fcc91c382f7edc2caca692c4059487cd6f
MEDIUM: proxy_protocol: Convert IPs to v6 when protocols are mixed

http-request set-src possibly creates a situation where src and dst
are from different address families. Convert both addresses to IPv6
to avoid a PROXY UNKNOWN.

This patch should be backported to haproxy 1.8.
src/connection.c