Remove port handeling when generating redirect url

This commit is contained in:
janskiba 2023-11-23 09:58:34 +00:00 committed by juarez
parent fb7e1ffce1
commit 46a2affe93
1 changed files with 0 additions and 6 deletions

View File

@ -296,12 +296,6 @@ capitalize_first_letter() {
generate_redirect_urls(){ generate_redirect_urls(){
local redirect_urls="https://${HOST}$1" local redirect_urls="https://${HOST}$1"
local host_without_proxy="$(echo "$HOST" | cut -d '.' -f1)" 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 if [[ "$HOST" != "$host_without_proxy" ]]; then
redirect_urls+=",https://$host_without_proxy$port$1" redirect_urls+=",https://$host_without_proxy$port$1"
fi fi