diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2012-04-27 18:23:31 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2012-04-27 18:23:31 +0000 |
commit | 0cd6cee6882e8a6928fb59607dd552e697768dfe (patch) | |
tree | 63eda0a1059b5464d50821c742fe5e75738ff507 /java | |
parent | c8719ad18c1f77b2fb15651634fc2bc468008ebf (diff) | |
download | tigervnc-0cd6cee6882e8a6928fb59607dd552e697768dfe.tar.gz tigervnc-0cd6cee6882e8a6928fb59607dd552e697768dfe.zip |
Fixed an issue with -listen mode where java client wasn't listening on the wildcard address
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4908 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/network/TcpListener.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/java/com/tigervnc/network/TcpListener.java b/java/com/tigervnc/network/TcpListener.java index afe80753..d6e92ab9 100644 --- a/java/com/tigervnc/network/TcpListener.java +++ b/java/com/tigervnc/network/TcpListener.java @@ -59,9 +59,7 @@ public class TcpListener extends SocketListener { } else if (listenaddr != null) { addr = java.net.InetAddress.getByName(listenaddr); } else { - // FIXME: need to be sure we get the wildcard address? - addr = InetAddress.getByName(null); - //addr = InetAddress.getLocalHost(); + addr = InetAddress.getByName("0.0.0.0"); } } catch (UnknownHostException e) { System.out.println(e.toString()); |