Special host config notation `_[interfaceName]_` might fail to resolve the host address, closes #1754.
This commit is contained in:
parent
32e1eff05a
commit
f6fc390f7a
|
@ -239,7 +239,7 @@ public abstract class NetworkUtils {
|
||||||
List<NetworkInterface> allInterfaces = new ArrayList<NetworkInterface>();
|
List<NetworkInterface> allInterfaces = new ArrayList<NetworkInterface>();
|
||||||
for (Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); interfaces.hasMoreElements(); ) {
|
for (Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); interfaces.hasMoreElements(); ) {
|
||||||
NetworkInterface intf = interfaces.nextElement();
|
NetworkInterface intf = interfaces.nextElement();
|
||||||
allInterfaces.add(interfaces.nextElement());
|
allInterfaces.add(intf);
|
||||||
|
|
||||||
Enumeration<NetworkInterface> subInterfaces = intf.getSubInterfaces();
|
Enumeration<NetworkInterface> subInterfaces = intf.getSubInterfaces();
|
||||||
if (subInterfaces != null && subInterfaces.hasMoreElements()) {
|
if (subInterfaces != null && subInterfaces.hasMoreElements()) {
|
||||||
|
|
Loading…
Reference in New Issue