allow limiting video-comments rss feeds to an account or video channel
[oweals/peertube.git] / server.ts
index e18e2be5c305c68a8fa8b74c4b899682ea3377c6..1286cf521ef15deedb6b9d735c0ff1553d3cdd21 100644 (file)
--- a/server.ts
+++ b/server.ts
@@ -137,14 +137,14 @@ if (isTestInstance()) {
 }
 
 // For the logger
-morgan.token('remote-addr', req => {
+morgan.token<express.Request>('remote-addr', req => {
   if (CONFIG.LOG.ANONYMIZE_IP === true || req.get('DNT') === '1') {
     return anonymize(req.ip, 16, 16)
   }
 
   return req.ip
 })
-morgan.token('user-agent', req => {
+morgan.token<express.Request>('user-agent', req => {
   if (req.get('DNT') === '1') {
     return useragent.parse(req.get('user-agent')).family
   }