mirror of https://github.com/samply/bridgehead.git
Remove port handeling when generating redirect url
This commit is contained in:
parent
72d37c87f9
commit
8505057863
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue