REGTESTS: checks: Fix tls_health_checks when IPv6 addresses are used
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 May 2020 05:59:59 +0000 (07:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2020 06:45:43 +0000 (08:45 +0200)
commit6af5efb8e783097ea8e543c324d6259ed35739e0
treea99e60286f1653085dddf95576324086ed7af62a
parentd2fc4f65dbef68136c557871f4e09a498724f7c4
REGTESTS: checks: Fix tls_health_checks when IPv6 addresses are used

In tls_health_checks.vtc, when IPv6 addresses are used, A config error is
reported because of the "addr" server parameter. Because there is no specified
port, the IPv6 address must be enclosed into brackets to be properly parsed. It
also works with IPv4 addresses. But instead, a dummy port is added to the addr
parameter. This way, we also check the port parameter, when specified, is used
in priority over the port found in the addr parameter.

This patch should fix the issue #646.

(cherry picked from commit ed48657e0297268d83d4b07027843c0a8ab05d36)
Signed-off-by: Willy Tarreau <w@1wt.eu>
reg-tests/checks/tls_health_checks.vtc