... and make use of that to make 1455 work better without using a fixed
local port number.
Fixes #2649
Closes #2650
HTTP GET when PROXY Protocol enabled
</name>
<command>
-http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol --local-port 37756
+http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol
</command>
</client>
<strip>
^User-Agent:.*
</strip>
+<strippart>
+s/^PROXY TCP4 %CLIENTIP %HOSTIP (\d*) %HTTPPORT/proxy-line/
+</strippart>
<protocol>
-PROXY TCP4 %CLIENTIP %HOSTIP 37756 %HTTPPORT\r
+proxy-line\r
GET /1455 HTTP/1.1\r
Host: %HOSTIP:%HTTPPORT\r
Accept: */*\r
# what parts to cut off from the protocol
my @strippart = getpart("verify", "strippart");
my $strip;
+ @strippart = fixarray(@strippart);
for $strip (@strippart) {
chomp $strip;
for(@out) {
+ print STDERR ":::: $strip\n";
eval $strip;
}
}