From 06aa6976e0edf5671591e64374ad704d3aed0b15 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sun, 22 Nov 2020 16:09:54 +0700 Subject: [PATCH] [FIX] Small fixes --- .../launchserver/command/service/SecurityCheckCommand.java | 6 ++++-- .../java/pro/gravit/launcher/profiles/ClientProfile.java | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java b/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java index fea875b8..30b83662 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/command/service/SecurityCheckCommand.java @@ -158,8 +158,10 @@ public void invoke(String... args) throws Exception { if (tokenizer.hasMoreTokens() && tokenizer.nextToken().equals("mods")) { String nextToken = tokenizer.nextToken(); if (!tokenizer.hasMoreTokens()) { - printCheckResult(LogHelper.Level.INFO, profileModuleName, String.format("updateExclusions %s not safe. Cheats may be injected very easy!", exc), false); - bad = true; + if(!exc.endsWith("/")) { + printCheckResult(LogHelper.Level.INFO, profileModuleName, String.format("updateExclusions %s not safe. Cheats may be injected very easy!", exc), false); + bad = true; + } } else { if (nextToken.equals("memory_repo") || nextToken.equals(profile.getVersion().name)) { printCheckResult(LogHelper.Level.INFO, profileModuleName, String.format("updateExclusions %s not safe. Cheats may be injected very easy!", exc), false); diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java index e5298443..1c0f8e99 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java @@ -352,8 +352,6 @@ public void verify() { // Client VerifyHelper.verify(getTitle(), VerifyHelper.NOT_EMPTY, "Profile title can't be empty"); VerifyHelper.verify(getInfo(), VerifyHelper.NOT_EMPTY, "Profile info can't be empty"); - VerifyHelper.verify(getServerAddress(), VerifyHelper.NOT_EMPTY, "Server address can't be empty"); - VerifyHelper.verifyInt(getServerPort(), VerifyHelper.range(0, 65535), "Illegal server port: " + getServerPort()); // Client launcher VerifyHelper.verify(getTitle(), VerifyHelper.NOT_EMPTY, "Main class can't be empty");