fix: properly generate urls for port 443 for non-https schemes
This commit is contained in:
1 file changed
+4
@@ -167,8 +167,12 @@ 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
|
||||||
|
if [[ "$SCHEME" == "https" ]]; then
|
||||||
echo "https://$VHOST"
|
echo "https://$VHOST"
|
||||||
else
|
else
|
||||||
echo "$SCHEME://$VHOST:$PORT"
|
echo "$SCHEME://$VHOST:$PORT"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "$SCHEME://$VHOST:$PORT"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user