Fix federation proxy to IP

pull/1232/head
Zef Hemel 2025-02-06 21:02:57 +01:00
parent ee246bb997
commit 9f8ac92464
1 changed files with 3 additions and 1 deletions

View File

@ -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}`;