On windows platforms with IPV6 enabled there are a number of pseudo
interfaces which don't work with our tests. This function is called to
make sure we only use the non-pseudo interfaces
boolean result = true;
String platform = System.getProperty("os.name");
// only use these on windows platforms
if (platform.startsWith("Windows")) {
if ((theInterface.getDisplayName()
.equals("Teredo Tunneling Pseudo-Interface"))
|| (theInterface.getDisplayName()
.equals("6to4 Tunneling Pseudo-Interface"))
|| (theInterface.getDisplayName()
.equals("Automatic Tunneling Pseudo-Interface"))
|| (theInterface.getDisplayName()
.equals("Loopback Pseudo-Interface"))) {
result = false;
}
}
return result;