[FIX] Ошибка при запуске ServerWrapper(ECCryptCipher)

This commit is contained in:
Gravit 2019-10-26 07:12:08 +07:00
parent 89c412cda1
commit 02cb32cd65
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -52,7 +52,7 @@ public ServerWrapper(Type type, Path configPath) {
public boolean auth() { public boolean auth() {
try { try {
LauncherConfig cfg = Launcher.getConfig(); LauncherConfig cfg = Launcher.getConfig();
AuthRequest request = new AuthRequest(config.login, SecurityHelper.newECEncryptCipher(cfg.publicKey).doFinal(IOHelper.encode(config.password)), config.auth_id, AuthRequest.ConnectTypes.SERVER); AuthRequest request = new AuthRequest(config.login, config.password, config.auth_id, AuthRequest.ConnectTypes.SERVER);
permissions = request.request().permissions; permissions = request.request().permissions;
ProfilesRequestEvent result = new ProfilesRequest().request(); ProfilesRequestEvent result = new ProfilesRequest().request();
for (ClientProfile p : result.profiles) { for (ClientProfile p : result.profiles) {