fix extra prompt for server port
change vpn detection failure to warning instead of error
This commit is contained in:
parent
934fead5c2
commit
18f4ffa9ff
@ -1,6 +1,6 @@
|
|||||||
var plugin = {
|
var plugin = {
|
||||||
author: 'RaidMax',
|
author: 'RaidMax',
|
||||||
version: 1.0,
|
version: 1.1,
|
||||||
name: 'VPN Detection Plugin',
|
name: 'VPN Detection Plugin',
|
||||||
|
|
||||||
manager: null,
|
manager: null,
|
||||||
@ -33,7 +33,7 @@ var plugin = {
|
|||||||
cl.Dispose();
|
cl.Dispose();
|
||||||
usingVPN = parsedJSON.success && parsedJSON.proxy;
|
usingVPN = parsedJSON.success && parsedJSON.proxy;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logger.WriteError(e.message);
|
this.logger.WriteWarning('There was a problem checking client IP for VPN ' + e.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (usingVPN) {
|
if (usingVPN) {
|
||||||
|
@ -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"]);
|
Password = Utilities.PromptString(loc["SETUP_SERVER_RCON"]);
|
||||||
AutoMessages = new List<string>();
|
AutoMessages = new List<string>();
|
||||||
Rules = new List<string>();
|
Rules = new List<string>();
|
||||||
|
Loading…
Reference in New Issue
Block a user