mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-12 15:56:00 +08:00
Remove 0.0.0.0 from Jetty bind exception to reduce attempts to change Internal_IP
This commit is contained in:
parent
77404a9f7a
commit
91cb569a3c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user