aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index b2541eed6..8df3add2c 100644
--- a/server.ts
+++ b/server.ts
@@ -142,7 +142,7 @@ if (isTestInstance()) {
142 142
143// For the logger 143// For the logger
144morgan.token('remote-addr', req => { 144morgan.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