diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -142,7 +142,7 @@ if (isTestInstance()) { | |||
142 | 142 | ||
143 | // For the logger | 143 | // For the logger |
144 | morgan.token('remote-addr', req => { | 144 | morgan.token('remote-addr', req => { |
145 | if (req.get('DNT') === '1') { | 145 | if (CONFIG.LOG.ANONYMIZE_IP === true || req.get('DNT') === '1') { |
146 | return anonymize(req.ip, 16, 16) | 146 | return anonymize(req.ip, 16, 16) |
147 | } | 147 | } |
148 | 148 | ||