From 104c041dd1296e0adddae32f1d0dcb2055ff954e Mon Sep 17 00:00:00 2001 From: Jordan Nieuwhof Date: Thu, 19 Jan 2023 04:27:51 -0800 Subject: [PATCH] [bitnami/pgbouncer] Remove IPv4 listen_addr validation (#13911) [bitnami/pgbouncer] Allow IPv6 and wildcard (*) addresses Signed-off-by: Jordan Nieuwhof --- .../rootfs/opt/bitnami/scripts/libpgbouncer.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh index 760f63639335..9b1a0ca4cc0f 100644 --- a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh +++ b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/libpgbouncer.sh @@ -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