mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-06 14:23:19 +08:00
fix: rdpToken len
This commit is contained in:
+3
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user