ServerSocket.java (ServerSocket): Bind to any interface if bindAddr is null.
authorBryce McKinlay <bryce@albatross.co.nz>
Thu, 2 Dec 1999 10:09:24 +0000 (10:09 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Thu, 2 Dec 1999 10:09:24 +0000 (10:09 +0000)
1999-12-02  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava/java/net/ServerSocket.java (ServerSocket): Bind to any
        interface if bindAddr is null.

From-SVN: r30755

libjava/ChangeLog
libjava/java/net/ServerSocket.java

index e14c6e9789fa8023418eaee7b3d00cd028c837d3..099d7279533b6c315c36ffda67820cfec79e1424 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * libjava/java/net/ServerSocket.java (ServerSocket): Bind to any
+       interface if bindAddr is null.
+
 1999-11-30  Tom Tromey  <tromey@cygnus.com>
 
        * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
index 95c9f358c1c1997649effcac0f7cc00f712782e1..82416435731d2976a50d80bdcf33fabcc6de2818 100644 (file)
@@ -52,7 +52,7 @@ public class ServerSocket
     if (s != null)
       s.checkListen(port);
     impl.create(true);
-    impl.bind(bindAddr, port);
+    impl.bind(bindAddr == null ? ANY_IF : bindAddr, port);
     impl.listen(backlog);
   }