diff --git a/core/java/src/net/i2p/util/Addresses.java b/core/java/src/net/i2p/util/Addresses.java index 6737a528af976360e5cb80767617ca8f324f0d7c..6022bf35b72570b57912a51ed27c112922b3869b 100644 --- a/core/java/src/net/i2p/util/Addresses.java +++ b/core/java/src/net/i2p/util/Addresses.java @@ -131,7 +131,15 @@ public abstract class Addresses { } } } - } catch (SocketException e) {} + } catch (SocketException e) { + } catch (java.lang.Error e) { + // Windows, possibly when IPv6 only... + // https://bugs.openjdk.java.net/browse/JDK-8046500 + // java.lang.Error: IP Helper Library GetIfTable function failed + // at java.net.NetworkInterface.getAll(Native Method) + // at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source) + // at net.i2p.util.Addresses.getAddresses ... + } if (includeLoopbackAndWildcard) { if (haveIPv4) diff --git a/router/java/src/net/i2p/router/transport/udp/MTU.java b/router/java/src/net/i2p/router/transport/udp/MTU.java index c6a2d1a2ea87299a5701e24b530aeae7248757c8..58d594e0d74d216a000b1fb357bee7cb62576787 100644 --- a/router/java/src/net/i2p/router/transport/udp/MTU.java +++ b/router/java/src/net/i2p/router/transport/udp/MTU.java @@ -40,6 +40,14 @@ abstract class MTU { ifcs = NetworkInterface.getNetworkInterfaces(); } catch (SocketException se) { return 0; + } catch (java.lang.Error e) { + // Windows, possibly when IPv6 only... + // https://bugs.openjdk.java.net/browse/JDK-8046500 + // java.lang.Error: IP Helper Library GetIfTable function failed + // at java.net.NetworkInterface.getAll(Native Method) + // at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source) + // at net.i2p.util.Addresses.getAddresses ... + return 0; } if (ifcs != null) { while (ifcs.hasMoreElements()) {