fix extra prompt for server port

change vpn detection failure to warning instead of error
This commit is contained in:
RaidMax 2019-04-18 14:19:50 -05:00
parent 934fead5c2
commit 18f4ffa9ff
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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<string>();
Rules = new List<string>();