Console: Don't show null port in error message (ticket #1712)

History for prop, -2
This commit is contained in:
zzz
2015-11-22 16:44:26 +00:00
parent 1215a70aab
commit 302ec7767a
3 changed files with 31 additions and 2 deletions

View File

@ -630,8 +630,9 @@ public class RouterConsoleRunner implements RouterApp {
}
}
if (error) {
String port = (_listenPort != null) ? _listenPort : ((_sslListenPort != null) ? _sslListenPort : "7657");
System.err.println("WARNING: Error starting one or more listeners of the Router Console server.\n" +
"If your console is still accessible at http://127.0.0.1:" + _listenPort + "/,\n" +
"If your console is still accessible at http://127.0.0.1:" + port + "/,\n" +
"this may be a problem only with binding to the IPV6 address ::1.\n" +
"If so, you may ignore this error, or remove the\n" +
"\"::1,\" in the \"clientApp.0.args\" line of the clients.config file.");