mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: braces
This commit is contained in:
@@ -280,7 +280,9 @@ async function listen() {
|
||||
port = parseInt(port, 10);
|
||||
|
||||
let trust_proxy = nconf.get('trust_proxy');
|
||||
if (trust_proxy == null && ![80, 443].includes(port)) trust_proxy = true;
|
||||
if (trust_proxy == null && ![80, 443].includes(port)) {
|
||||
trust_proxy = true;
|
||||
}
|
||||
if (trust_proxy) {
|
||||
winston.info(`🤝 Setting 'trust proxy' to ${JSON.stringify(trust_proxy)}`);
|
||||
app.set('trust proxy', trust_proxy);
|
||||
|
||||
Reference in New Issue
Block a user