[bitnami/pgbouncer] Remove IPv4 listen_addr validation (#13911)
[bitnami/pgbouncer] Allow IPv6 and wildcard (*) addresses Signed-off-by: Jordan Nieuwhof <jgnieuwhof@gmail.com>
This commit is contained in:
parent
9d7d8d04d5
commit
104c041dd1
|
|
@ -52,18 +52,7 @@ pgbouncer_validate() {
|
|||
fi
|
||||
}
|
||||
|
||||
check_ip_value() {
|
||||
if ! validate_ipv4 "${!1}"; then
|
||||
if ! is_hostname_resolved "${!1}"; then
|
||||
print_validation_error "The value for $1 should be an IPv4 address or it must be a resolvable hostname"
|
||||
else
|
||||
debug "Hostname resolvable for $1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
check_valid_port "PGBOUNCER_PORT"
|
||||
check_ip_value "PGBOUNCER_LISTEN_ADDRESS"
|
||||
check_multi_value "PGBOUNCER_AUTH_TYPE" "any cert md5 hba pam plain scram-sha-256 trust"
|
||||
! is_empty_value "$PGBOUNCER_POOL_MODE" && check_multi_value "PGBOUNCER_POOL_MODE" "session statement transaction"
|
||||
if [[ "$PGBOUNCER_AUTH_TYPE" = "trust" ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue