Skip to content

Commit

Permalink
Use base64Url encoding for server configuration to ensure compatibili…
Browse files Browse the repository at this point in the history
…ty with the command line --config option. (rustdesk#9897)
  • Loading branch information
lead8964878 authored Nov 12, 2024
1 parent d4aa2b7 commit 0aa98ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flutter/lib/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0aa98ea

Please sign in to comment.