fix: rdpToken len

This commit is contained in:
chaoszhu
2026-07-14 17:47:20 +08:00
parent eec16b6510
commit ba5e11d63e
+3 -1
View File
@@ -1,3 +1,5 @@
global.rpdToken = require('crypto').randomBytes(32).toString('hex')
// AES-256-CBC requires a 32-byte key. Keep the random bytes as a Buffer;
// converting them to hex produces a 64-character value and breaks RDP token encryption.
global.rpdToken = require('crypto').randomBytes(32)
require('dotenv').config()
require('./app/main.js')