From: William Lallemand Date: Fri, 26 Aug 2022 14:48:07 +0000 (+0200) Subject: DOC: configuration.txt: do-resolve must use host_only to remove its port. X-Git-Tag: v2.7-dev5~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5c2cd461d08a6196f858479de5c9aa9f7a9baf9;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index fce5698533..24dc9e39d6 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,