Fix federation proxy to IP
parent
ee246bb997
commit
9f8ac92464
|
@ -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}`;
|
||||
|
|
Loading…
Reference in New Issue