fix: properly generate urls for port 443 for non-https schemes

This commit is contained in:
Jose Diaz-Gonzalez
2025-09-07 22:05:47 -04:00
parent ca32172e1d
commit 7345bda611

View File

@@ -167,7 +167,11 @@ fn-domains-generate-url() {
if [[ "$PORT" == "80" ]]; then
echo "http://$VHOST"
elif [[ "$PORT" == "443" ]]; then
echo "https://$VHOST"
if [[ "$SCHEME" == "https" ]]; then
echo "https://$VHOST"
else
echo "$SCHEME://$VHOST:$PORT"
fi
else
echo "$SCHEME://$VHOST:$PORT"
fi