We want to bind to INADDR_ANY rather than localhost specifically.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1959 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-11-18 18:56:52 +00:00
parent 45fb96c4f2
commit 9a022a98cc
@@ -1,5 +1,5 @@
//
// $Id: ConnectionManager.java,v 1.25 2002/11/18 18:53:10 mdb Exp $
// $Id: ConnectionManager.java,v 1.26 2002/11/18 18:56:52 mdb Exp $
package com.threerings.presents.server.net;
@@ -12,7 +12,6 @@ import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.channels.spi.SelectorProvider;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.SocketException;
@@ -64,8 +63,7 @@ public class ConnectionManager extends LoopingThread
_listener = ServerSocketChannel.open();
_listener.configureBlocking(false);
InetAddress lh = InetAddress.getLocalHost();
InetSocketAddress isa = new InetSocketAddress(lh, _port);
InetSocketAddress isa = new InetSocketAddress(_port);
_listener.socket().bind(isa);
Log.info("Server listening on " + isa + ".");