Remove 0.0.0.0 from Jetty bind exception to reduce attempts to change Internal_IP

This commit is contained in:
Aurora Lahtela 2022-09-04 08:56:09 +03:00
parent 77404a9f7a
commit 91cb569a3c
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public class JettyWebserver implements WebServer {
if (e.getMessage().contains("Failed to bind")) {
boolean defaultInternalIp = "0.0.0.0".equals(internalIP);
String causeHelp = defaultInternalIp ? ", is the port (" + port + ") in use?" : ", is the Internal_IP (" + internalIP + ") invalid? (Use 0.0.0.0 for automatic)";
throw new EnableException(startFailure + e.getMessage() + causeHelp, e);
throw new EnableException(startFailure + e.getMessage().replace("0.0.0.0", "") + causeHelp, e);
} else {
throw new EnableException(startFailure + e.toString(), e);
}