Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken 2018-08-26 17:39:37 -04:00
commit 2677c0e752

View File

@ -135,7 +135,7 @@ public class DesktopPlatform extends Platform{
try{
Enumeration<NetworkInterface> e = NetworkInterface.getNetworkInterfaces();
NetworkInterface out;
for(out = e.nextElement(); out.getHardwareAddress() == null && e.hasMoreElements() && validAddress(out.getHardwareAddress()); out = e.nextElement()) ;
for(out = e.nextElement(); (out.getHardwareAddress() == null || !validAddress(out.getHardwareAddress())) && e.hasMoreElements(); out = e.nextElement()) ;
byte[] bytes = out.getHardwareAddress();
byte[] result = new byte[8];