From 85050578638b105d5f07ddc4fabd8933c0bd0092 Mon Sep 17 00:00:00 2001 From: janskiba Date: Thu, 23 Nov 2023 09:58:34 +0000 Subject: [PATCH] Remove port handeling when generating redirect url --- lib/functions.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/functions.sh b/lib/functions.sh index c53997f..865db92 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -296,12 +296,6 @@ capitalize_first_letter() { generate_redirect_urls(){ local redirect_urls="https://${HOST}$1" local host_without_proxy="$(echo "$HOST" | cut -d '.' -f1)" - local port="$(echo "$HOST" | rev | cut -d ':' -f1 | rev)" - if [ -z "${port}" ]; then - port="" - else - port=":$port" - fi if [[ "$HOST" != "$host_without_proxy" ]]; then redirect_urls+=",https://$host_without_proxy$port$1" fi