REGTEST: make the PROXY TLV validation depend on version 2.2
Regtest proxy_protocol_tlv_validation was added by commit 488ee7fb6e
("BUG/MAJOR: proxy_protocol: Properly validate TLV lengths") but it
relies on a trick involving http-after-response to append a header
after a 400-badreq response, which is not possible in earlier versions,
so make it depend on 2.2.
(cherry picked from commit 1d52c7b52bb5e11dee64aff148332b830c93e95a)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 68c0ec0fdd2d4e73dd93b6cf427783fb2d25fbf2)
Signed-off-by: Willy Tarreau <w@1wt.eu>
diff --git a/reg-tests/connection/proxy_protocol_tlv_validation.vtc b/reg-tests/connection/proxy_protocol_tlv_validation.vtc
index 65a251c..24c548f 100644
--- a/reg-tests/connection/proxy_protocol_tlv_validation.vtc
+++ b/reg-tests/connection/proxy_protocol_tlv_validation.vtc
@@ -1,5 +1,7 @@
varnishtest "Check that the TLVs are properly validated"
+#REQUIRE_VERSION=2.2
+
feature ignore_unknown_macro
# We need one HAProxy for each test, because apparently the connection by