Added warning about 0.0.0.0 as address

Affects issues:
- Fixed #1214
This commit is contained in:
Rsl1122 2019-11-05 12:20:17 +02:00
parent 0bb383acd9
commit 97094a9e03
2 changed files with 5 additions and 0 deletions

View File

@ -99,6 +99,10 @@ public class WebServer implements SubSystem {
initServer();
if (getAccessAddress().contains("0.0.0.0")) {
logger.warn(locale.getString(PluginLang.ENABLE_NOTIFY_BAD_IP));
}
if (!isEnabled()) {
if (config.isTrue(WebserverSettings.DISABLED)) {
logger.warn(locale.getString(PluginLang.ENABLE_NOTIFY_WEB_SERVER_DISABLED));

View File

@ -27,6 +27,7 @@ public enum PluginLang implements Lang {
ENABLED_DATABASE("Enable - Database", "${0}-database connection established."),
ENABLE_NOTIFY_EMPTY_IP("Enable - Notify Empty IP", "IP in server.properties is empty & AlternativeIP is not in use. Incorrect links will be given!"),
ENABLE_NOTIFY_BAD_IP("Enable - Notify Bad IP", "0.0.0.0 is not a valid address, set up AlternativeIP settings. Incorrect links will be given!"),
ENABLE_NOTIFY_WEB_SERVER_DISABLED("Enable - Notify Webserver disabled", "WebServer was not initialized. (WebServer.DisableWebServer: true)"),
ENABLE_NOTIFY_GEOLOCATIONS_INTERNET_REQUIRED("Enable - Notify Geolocations Internet Required", "Plan Requires internet access on first run to download GeoLite2 Geolocation database."),
ENABLE_NOTIFY_GEOLOCATIONS_DISABLED("Enable - Notify Geolocations disabled", "Geolocation gathering is not active. (Data.Geolocations: false)"),