Special host config notation `_[interfaceName]_` might fail to resolve the host address, closes #1754.

This commit is contained in:
Shay Banon 2012-03-02 16:58:54 +02:00
parent 32e1eff05a
commit f6fc390f7a
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ public abstract class NetworkUtils {
List<NetworkInterface> allInterfaces = new ArrayList<NetworkInterface>();
for (Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); interfaces.hasMoreElements(); ) {
NetworkInterface intf = interfaces.nextElement();
allInterfaces.add(interfaces.nextElement());
allInterfaces.add(intf);
Enumeration<NetworkInterface> subInterfaces = intf.getSubInterfaces();
if (subInterfaces != null && subInterfaces.hasMoreElements()) {