removes optional chaining
This commit is contained in:
@@ -101,7 +101,7 @@ class Payload {
|
||||
// If not initializing locally, set up HTTP routing
|
||||
if (!this.config.local) {
|
||||
this.express = options.express;
|
||||
if (this.config.rateLimit?.trustProxy) this.express.set('trust proxy', 1);
|
||||
if (this.config.rateLimit && this.config.rateLimit.trustProxy) this.express.set('trust proxy', 1);
|
||||
|
||||
this.initAdmin();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user