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 bb076c5d5a
commit 043e12b985
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