mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 21:35:25 +00:00
7013969: NetworkInterface.toString can reveal bindings
Reviewed-by: alanb, michaelm, hawtin
This commit is contained in:
parent
0c700cc07d
commit
bbcb5e8be3
@ -547,13 +547,8 @@ public final class NetworkInterface {
|
||||
if (displayName != null) {
|
||||
result += " (" + displayName + ")";
|
||||
}
|
||||
result += " index: "+index+" addresses:\n";
|
||||
for (Enumeration e = getInetAddresses(); e.hasMoreElements(); ) {
|
||||
InetAddress addr = (InetAddress)e.nextElement();
|
||||
result += addr+";\n";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
private static native void init();
|
||||
|
||||
private static native void init();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user