aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-06 09:09:36 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commit3bc68dfd6183078fb56b53e24e74f889c85c4ae0 (patch)
treeeac38175bf815227f39bf0327c7399b85b05ad08 /server.ts
parentf8c00564e7e66c7c9d65ea044a4c1485df0e4c7c (diff)
downloadPeerTube-3bc68dfd6183078fb56b53e24e74f889c85c4ae0.tar.gz
PeerTube-3bc68dfd6183078fb56b53e24e74f889c85c4ae0.tar.zst
PeerTube-3bc68dfd6183078fb56b53e24e74f889c85c4ae0.zip
Fix audio sync after saving replay
hls.js seems to not correctly handle audio gaps with fragmented mp4 (but can with a ts playlist)
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.ts b/server.ts
index e2ff6327b..6963bbf23 100644
--- a/server.ts
+++ b/server.ts
@@ -142,14 +142,14 @@ if (isTestInstance()) {
142} 142}
143 143
144// For the logger 144// For the logger
145morgan.token('remote-addr', req => { 145morgan.token('remote-addr', (req: express.Request) => {
146 if (CONFIG.LOG.ANONYMIZE_IP === true || req.get('DNT') === '1') { 146 if (CONFIG.LOG.ANONYMIZE_IP === true || req.get('DNT') === '1') {
147 return anonymize(req.ip, 16, 16) 147 return anonymize(req.ip, 16, 16)
148 } 148 }
149 149
150 return req.ip 150 return req.ip
151}) 151})
152morgan.token('user-agent', req => { 152morgan.token('user-agent', (req: express.Request) => {
153 if (req.get('DNT') === '1') { 153 if (req.get('DNT') === '1') {
154 return useragent.parse(req.get('user-agent')).family 154 return useragent.parse(req.get('user-agent')).family
155 } 155 }