Fix bug matching https port

This commit is contained in:
Max Goodhart
2020-06-21 01:51:52 -07:00
parent da3e4644ee
commit 2307eb6289

View File

@@ -90,7 +90,7 @@ export default async function initWebServer({
}) {
let { protocol, hostname, port } = new URL(baseURL)
if (!port) {
port = protocol === 'https' ? 443 : 80
port = protocol === 'https:' ? 443 : 80
}
if (overridePort) {
port = overridePort