mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 03:07:20 +00:00
Another attempted fix at Network nulling
See title.
This commit is contained in:
1 parent
afdc4901b3
commit
f11339bce5
1 file changed
+5
-2
@@ -47,11 +47,14 @@ public class NetworkInterface {
|
||||
if (realMac != null)
|
||||
return realMac;
|
||||
try {
|
||||
return realMac = java.net.NetworkInterface.getByInetAddress(
|
||||
byte[] b = java.net.NetworkInterface.getByInetAddress(
|
||||
InetAddress.getLocalHost()).getHardwareAddress();
|
||||
if(b == null)
|
||||
b = mac;
|
||||
realMac = b;
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
return mac;
|
||||
return realMac = mac;
|
||||
}
|
||||
|
||||
public static NetworkInterface getByInetAddress(InetAddress addr) {
|
||||
|
||||
Reference in new issue
Block a user