From c8a34f906aff0629001def45069f7adca8ea46ef Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 22 Nov 2022 23:35:32 -0500 Subject: [PATCH] chore: remove unused ipv4/ipv6 regex fetch --- plugins/domains/functions | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/domains/functions b/plugins/domains/functions index 79341b6a3..e7fe0bd2d 100755 --- a/plugins/domains/functions +++ b/plugins/domains/functions @@ -26,8 +26,6 @@ domains_setup() { local APP="$1" local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST" local GLOBAL_VHOST_PATH="$DOKKU_ROOT/VHOST" - local RE_IPV4="$(get_ipv4_regex)" - local RE_IPV6="$(get_ipv6_regex)" local DEFAULT_VHOSTS="$(get_default_vhosts "$APP")" if [[ ! -f $APP_VHOST_PATH ]]; then @@ -264,8 +262,6 @@ is_global_vhost_enabled() { declare desc="returns true if we have a valid global vhost set; otherwise returns false" local GLOBAL_VHOSTS=$(get_global_vhosts) local GLOBAL_VHOSTS_ENABLED=false - local RE_IPV4="$(get_ipv4_regex)" - local RE_IPV6="$(get_ipv6_regex)" while read -r GLOBAL_VHOST; do if (is_valid_hostname "$GLOBAL_VHOST"); then