diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-06 09:09:36 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | 3bc68dfd6183078fb56b53e24e74f889c85c4ae0 (patch) | |
tree | eac38175bf815227f39bf0327c7399b85b05ad08 /server.ts | |
parent | f8c00564e7e66c7c9d65ea044a4c1485df0e4c7c (diff) | |
download | PeerTube-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.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -142,14 +142,14 @@ if (isTestInstance()) { | |||
142 | } | 142 | } |
143 | 143 | ||
144 | // For the logger | 144 | // For the logger |
145 | morgan.token('remote-addr', req => { | 145 | morgan.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 | }) |
152 | morgan.token('user-agent', req => { | 152 | morgan.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 | } |