Skip to content

Commit

Permalink
ignore point-to-point interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Kaufmann <[email protected]>
  • Loading branch information
Simon Kaufmann authored and kaikreuzer committed Apr 9, 2018
1 parent b502440 commit 4f5c4ea
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ protected boolean isUsableNetworkInterface(NetworkInterface iface) throws Except
return false;
}

if (iface.isPointToPoint()) {
log.trace("Skipping point-to-point network interface: {}", iface.getDisplayName());
return false;
}

if (iface.getName().toLowerCase(Locale.ENGLISH).startsWith("vmnet") || (iface.getDisplayName() != null
&& iface.getDisplayName().toLowerCase(Locale.ENGLISH).contains("vmnet"))) {
log.trace("Skipping network interface (VMWare): {}", iface.getDisplayName());
Expand Down

0 comments on commit 4f5c4ea

Please sign in to comment.