fix: properly generate urls for port 443 for non-https schemes
This commit is contained in:
1 file changed
+5
-1
@@ -167,7 +167,11 @@ fn-domains-generate-url() {
|
|||||||
if [[ "$PORT" == "80" ]]; then
|
if [[ "$PORT" == "80" ]]; then
|
||||||
echo "http://$VHOST"
|
echo "http://$VHOST"
|
||||||
elif [[ "$PORT" == "443" ]]; then
|
elif [[ "$PORT" == "443" ]]; then
|
||||||
echo "https://$VHOST"
|
if [[ "$SCHEME" == "https" ]]; then
|
||||||
|
echo "https://$VHOST"
|
||||||
|
else
|
||||||
|
echo "$SCHEME://$VHOST:$PORT"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "$SCHEME://$VHOST:$PORT"
|
echo "$SCHEME://$VHOST:$PORT"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user