@@ -450,10 +450,15 @@ // don't have connect permission to any local address return null; } } } + return getHardwareAddress0(); + } + + // the same as getHardwareAddress(), but without security checks + byte[] getHardwareAddress0() throws SocketException { for (InetAddress addr : addrs) { if (addr instanceof Inet4Address) { return getMacAddr0(((Inet4Address)addr).getAddress(), name, index); } }