small security updates

This commit is contained in:
zefie
2025-08-13 01:09:18 -04:00
parent 005bd377a2
commit bd03b3a6db
2 changed files with 7 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ class WebTVClientSimulator {
this.previousUrl = null; // Store previous URL for Referer header
this.debug = debug;
this.defaultBox = "plus";
this.connectSessionId = Math.random().toString(16).slice(2, 10).padEnd(8, '0');
this.connectSessionId = crypto.randomBytes(4).toString('hex');;
this.username = username;
// Load minisrv config to get the initial shared key