Use localhost instead of 127.0.0.1
authorjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 18 Jun 2008 09:08:14 +0000 (09:08 +0000)
committerjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 18 Jun 2008 09:08:14 +0000 (09:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@669119 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardServer.java

index 7135ae9..3548d6a 100644 (file)
@@ -140,7 +140,7 @@ public final class StandardServer
     /**
      * The address on which we wait for shutdown commands.
      */
-    private String address = "127.0.0.1";
+    private String address = "localhost";
 
 
     /**
@@ -400,8 +400,8 @@ public final class StandardServer
                 new ServerSocket(port, 1,
                                  InetAddress.getByName(address));
         } catch (IOException e) {
-            log.error("StandardServer.await: create[" + port
-                               + ":" + address
+            log.error("StandardServer.await: create[" + address
+                               + ":" + port
                                + "]: ", e);
             System.exit(1);
         }