]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: make the PROXY TLV validation depend on version 2.2
authorWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:36:20 +0000 (16:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:37:58 +0000 (16:37 +0200)
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.

reg-tests/connection/proxy_protocol_tlv_validation.vtc

index 65a251cb896771bd188d4a68891dcd5b7e9ebeda..24c548f133141646505765b308c341a2bb024d1e 100644 (file)
@@ -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