Fix federation proxy to IP
parent
ee246bb997
commit
9f8ac92464
|
@ -708,7 +708,9 @@ export class HttpServer {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (url.startsWith("localhost")) {
|
if (
|
||||||
|
url.startsWith("localhost") || url.match(/^\d+\./)
|
||||||
|
) {
|
||||||
url = `http://${url}`;
|
url = `http://${url}`;
|
||||||
} else {
|
} else {
|
||||||
url = `https://${url}`;
|
url = `https://${url}`;
|
||||||
|
|
Loading…
Reference in New Issue