[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:
Jordan Nieuwhof 2023-01-19 04:27:51 -08:00 committed by GitHub
parent 9d7d8d04d5
commit 104c041dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -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