0.0.0.0 == *
This commit is contained in:
parent
1e45ce07e4
commit
43ffe1cc1a
|
@ -44,8 +44,12 @@ public class TestNetInfo extends SigarTestCase {
|
|||
|
||||
for (int i=0; i<connections.length; i++) {
|
||||
long port = connections[i].getLocalPort();
|
||||
traceln("Listen " +
|
||||
getSigar().getNetListenAddress(port) + ":" + port);
|
||||
String listenAddress =
|
||||
getSigar().getNetListenAddress(port);
|
||||
if (NetFlags.isAnyAddress(listenAddress)) {
|
||||
listenAddress = "*";
|
||||
}
|
||||
traceln("Listen " + listenAddress + ":" + port);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue