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++) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue