From b5c2cd461d08a6196f858479de5c9aa9f7a9baf9 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 26 Aug 2022 16:48:07 +0200 Subject: [PATCH] DOC: configuration.txt: do-resolve must use host_only to remove its port. The do-resolve action does not support a port in its parameter string, the host_only converter must be used. Must be backported to 2.6. --- doc/configuration.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index fce569853..24dc9e39d 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -6595,7 +6595,7 @@ http-request do-resolve(,,[ipv4,ipv6]) frontend fe bind 10.42.0.1:80 - http-request do-resolve(txn.myip,mydns,ipv4) hdr(Host),lower,regsub(:[0-9]*$,) + http-request do-resolve(txn.myip,mydns,ipv4) hdr(Host),host_only http-request capture var(txn.myip) len 40 # return 503 when the variable is not set,