[bitnami/elasticsearch] Enclose IPv6 addresses in square brackets in the healthcheck URL. (#65198)
* Enclose IPv6 addresses in square brackets in the healthcheck URL. Signed-off-by: Francesco Prelz <francesco.prelz@mi.infn.it> * Expand variable in braces, as suggested by patch reviewer - should make no difference in case of a validated IPv6 address. Signed-off-by: Francesco Prelz <francesco.prelz@mi.infn.it> --------- Signed-off-by: Francesco Prelz <francesco.prelz@mi.infn.it>
This commit is contained in:
parent
b20c3f9a94
commit
8e417c19c1
|
|
@ -909,6 +909,9 @@ elasticsearch_healthcheck() {
|
|||
local host
|
||||
|
||||
host=$(get_elasticsearch_hostname)
|
||||
if validate_ipv6 "${host}"; then
|
||||
host="[${host}]"
|
||||
fi
|
||||
|
||||
if is_boolean_yes "$DB_ENABLE_SECURITY"; then
|
||||
command_args+=("-k" "--user" "${DB_USERNAME}:${DB_PASSWORD}")
|
||||
|
|
|
|||
|
|
@ -909,6 +909,9 @@ elasticsearch_healthcheck() {
|
|||
local host
|
||||
|
||||
host=$(get_elasticsearch_hostname)
|
||||
if validate_ipv6 "${host}"; then
|
||||
host="[${host}]"
|
||||
fi
|
||||
|
||||
if is_boolean_yes "$DB_ENABLE_SECURITY"; then
|
||||
command_args+=("-k" "--user" "${DB_USERNAME}:${DB_PASSWORD}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue