Use x-forwarded-host only when trustProxy is true

This commit is contained in:
Chongyi Zheng
2022-07-12 22:59:23 -04:00
parent 6ce012c9a1
commit 3fa5dfc873
2 changed files with 11 additions and 5 deletions

View File

@@ -49,8 +49,6 @@ class UptimeKumaServer {
log.info("server", "Creating express and socket.io instance");
this.app = express();
this.app.enable("trust proxy");
if (sslKey && sslCert) {
log.info("server", "Server Type: HTTPS");
this.httpServer = https.createServer({