]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: configuration.txt: do-resolve must use host_only to remove its port.
authorWilliam Lallemand <wlallemand@haproxy.org>
Fri, 26 Aug 2022 14:48:07 +0000 (16:48 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 26 Aug 2022 15:00:22 +0000 (17:00 +0200)
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

index fce5698533e1e9976b1d85fbfdd07aafcfc0b09b..24dc9e39d6927ecb713e3d74102fc1c97c4c2b33 100644 (file)
@@ -6595,7 +6595,7 @@ http-request do-resolve(<var>,<resolvers>,[ipv4,ipv6]) <expr>
 
     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,