mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 10:26:19 +02:00
Use base64Url encoding for server configuration to ensure compatibility with the command line --config option. (#9897)
This commit is contained in:
parent
d4aa2b7ce4
commit
0aa98eac6d
1 changed files with 1 additions and 1 deletions
|
@ -2603,7 +2603,7 @@ class ServerConfig {
|
|||
config['relay'] = relayServer.trim();
|
||||
config['api'] = apiServer.trim();
|
||||
config['key'] = key.trim();
|
||||
return base64Encode(Uint8List.fromList(jsonEncode(config).codeUnits))
|
||||
return base64UrlEncode(Uint8List.fromList(jsonEncode(config).codeUnits))
|
||||
.split('')
|
||||
.reversed
|
||||
.join();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue