diff --git a/server/http_server.ts b/server/http_server.ts index 6a0374ff..bb3472a0 100644 --- a/server/http_server.ts +++ b/server/http_server.ts @@ -708,7 +708,9 @@ export class HttpServer { return next(); } } - if (url.startsWith("localhost")) { + if ( + url.startsWith("localhost") || url.match(/^\d+\./) + ) { url = `http://${url}`; } else { url = `https://${url}`;