mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08: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
@ -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…
Reference in New Issue
Block a user