From 043e12b9854c292356cbce827577bb9dec12def8 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 78317fd..0cb5aba 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