mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-05 16:03:54 +02:00
MINOR: httpclient/lua: add 'dst' optionnal field
The 'dst' optionnal field on a httpclient request can be used to set an alternative server address in the haproxy address format. Which means it could be use with unix@, ipv6@ etc. Should fix issue #1471.
This commit is contained in:
@@ -42,7 +42,7 @@ local function cron()
|
||||
|
||||
core.Info("Third httpclient request")
|
||||
local httpclient3 = core.httpclient()
|
||||
local response3 = httpclient3:get{url="http://127.0.0.1:" .. vtc_port3, headers={ [ "Host" ] = { "foobar.haproxy.local" } }}
|
||||
local response3 = httpclient3:get{url="http://127.0.0.1", dst = vtc_port3, headers={ [ "Host" ] = { "foobar.haproxy.local" } }}
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user