From bb9a340c73f3f96b2a8e39add7072aae4dc81628 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 12 Jun 2018 15:48:47 +0200 Subject: runtests: support variables in ... and make use of that to make 1455 work better without using a fixed local port number. Fixes #2649 Closes #2650 --- tests/data/test1455 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/data/test1455') diff --git a/tests/data/test1455 b/tests/data/test1455 index 7768a1f89..0b77dc4f5 100644 --- a/tests/data/test1455 +++ b/tests/data/test1455 @@ -35,7 +35,7 @@ http HTTP GET when PROXY Protocol enabled -http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol --local-port 37756 +http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol @@ -45,8 +45,11 @@ http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol --local-port 37756 ^User-Agent:.* + +s/^PROXY TCP4 %CLIENTIP %HOSTIP (\d*) %HTTPPORT/proxy-line/ + -PROXY TCP4 %CLIENTIP %HOSTIP 37756 %HTTPPORT +proxy-line GET /1455 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* -- cgit v1.2.1