mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-17 03:00:43 +00:00
BUG/MINOR: httpclient: fix resolution with port
Fix the resolution in the httpclient when a port is associated to a domain. The do-resolve action doesn't support a port in its input. Must be backported to 2.6. Require the "host_only" converter to be backported.
This commit is contained in:
parent
dd754cba16
commit
d78dfe7891
@ -1070,7 +1070,7 @@ static int httpclient_resolve_init()
|
||||
char *do_resolve = NULL;
|
||||
char *http_rules[][11] = {
|
||||
{ "set-var(txn.hc_ip)", "dst", "" },
|
||||
{ do_resolve, "hdr(Host),lower", "if", "{", "var(txn.hc_ip)", "-m", "ip", "0.0.0.0", "}", "" },
|
||||
{ do_resolve, "hdr(Host),host_only", "if", "{", "var(txn.hc_ip)", "-m", "ip", "0.0.0.0", "}", "" },
|
||||
{ "return", "status", "503", "if", "{", "var(txn.hc_ip)", "-m", "ip", "0.0.0.0", "}", "" },
|
||||
{ "capture", "var(txn.hc_ip)", "len", "40", "" },
|
||||
{ "set-dst", "var(txn.hc_ip)", "" },
|
||||
|
Loading…
Reference in New Issue
Block a user