fix airplay list

This commit is contained in:
vapormusic 2022-08-31 17:13:17 +07:00
parent 720970b2e2
commit 1bcc2f801a
2 changed files with 10 additions and 6 deletions

View file

@ -619,6 +619,8 @@ export class BrowserWindow {
const ip = req.headers["x-forwarded-for"] || req.connection.remoteAddress;
if (!this.chromecastIP.includes(ip)) {
this.headerSent = false;
this.audioStream._readableState.buffer.clear()
this.audioStream._readableState.length = 0
this.chromecastIP.push(ip);
}
req.socket.setTimeout(Number.MAX_SAFE_INTEGER);