0.0.0.0 == *

This commit is contained in:
Doug MacEachern 2007-04-06 16:23:19 +00:00
parent 1e45ce07e4
commit 43ffe1cc1a
1 changed files with 6 additions and 2 deletions

View File

@ -44,8 +44,12 @@ public class TestNetInfo extends SigarTestCase {
for (int i=0; i<connections.length; i++) { for (int i=0; i<connections.length; i++) {
long port = connections[i].getLocalPort(); long port = connections[i].getLocalPort();
traceln("Listen " + String listenAddress =
getSigar().getNetListenAddress(port) + ":" + port); getSigar().getNetListenAddress(port);
if (NetFlags.isAnyAddress(listenAddress)) {
listenAddress = "*";
}
traceln("Listen " + listenAddress + ":" + port);
} }
} }
} }