Use base64Url encoding for server configuration to ensure compatibility with the command line --config option. (#9897)

This commit is contained in:
HanaKuru 2024-11-12 20:15:34 +08:00 committed by GitHub
parent d4aa2b7ce4
commit 0aa98eac6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();