From 18f4ffa9ff9abd9c5b04d4422c3d8fae6e1766ba Mon Sep 17 00:00:00 2001 From: RaidMax Date: Thu, 18 Apr 2019 14:19:50 -0500 Subject: [PATCH] fix extra prompt for server port change vpn detection failure to warning instead of error --- Plugins/ScriptPlugins/VPNDetection.js | 4 ++-- SharedLibraryCore/Configuration/ServerConfiguration.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/ScriptPlugins/VPNDetection.js b/Plugins/ScriptPlugins/VPNDetection.js index 32dc4e6c8..33a32f140 100644 --- a/Plugins/ScriptPlugins/VPNDetection.js +++ b/Plugins/ScriptPlugins/VPNDetection.js @@ -1,6 +1,6 @@ var plugin = { author: 'RaidMax', - version: 1.0, + version: 1.1, name: 'VPN Detection Plugin', manager: null, @@ -33,7 +33,7 @@ var plugin = { cl.Dispose(); usingVPN = parsedJSON.success && parsedJSON.proxy; } catch (e) { - this.logger.WriteError(e.message); + this.logger.WriteWarning('There was a problem checking client IP for VPN ' + e.message); } if (usingVPN) { diff --git a/SharedLibraryCore/Configuration/ServerConfiguration.cs b/SharedLibraryCore/Configuration/ServerConfiguration.cs index 235740694..6b5a5bf9d 100644 --- a/SharedLibraryCore/Configuration/ServerConfiguration.cs +++ b/SharedLibraryCore/Configuration/ServerConfiguration.cs @@ -92,7 +92,7 @@ namespace SharedLibraryCore.Configuration } } - Port = Utilities.PromptInt(Utilities.PromptString(loc["SETUP_SERVER_PORT"]), null, 1, ushort.MaxValue); + Port = Utilities.PromptInt(loc["SETUP_SERVER_PORT"], null, 1, ushort.MaxValue); Password = Utilities.PromptString(loc["SETUP_SERVER_RCON"]); AutoMessages = new List(); Rules = new List();