Commit b0e4154c18c4dc42c6ce9f3884aa76087e18769d
1 parent
81c49ca11f
Exists in
master
and in
1 other branch
Fix config.listener.partner.trust_proxy
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/partner-listener/index.js
... | ... | @@ -16,7 +16,7 @@ const routerTrxStatus = require('./routers/trx-status'); |
16 | 16 | |
17 | 17 | const app = express(); |
18 | 18 | |
19 | -if (config.partner && config.partner.trust_proxy) { | |
19 | +if (config.listener && config.listener.partner && config.listener.partner.trust_proxy) { | |
20 | 20 | logger.verbose(`${MODULE_NAME} 01156CE1: Proxies trusted`, { trusted: config.partner.trust_proxy }); |
21 | 21 | app.set('trust proxy', config.partner.trust_proxy); |
22 | 22 | } |