From 124f1ddbeb39c7170f968b232bbba7586c416365 Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 11 Mar 2019 17:43:55 +0700 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20=D0=94=D0=BE=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D1=81=D0=B5=D1=82=D0=B5=D0=B2=D1=8B=D0=BC=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D0=B0=D0=BC=20?= =?UTF-8?q?=D0=B2=20HWID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java b/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java index 4c2ea950..59449386 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java +++ b/Launcher/src/main/java/ru/gravit/launcher/hwid/OshiHWIDProvider.java @@ -7,6 +7,8 @@ import ru.gravit.launcher.OshiHWID; import ru.gravit.utils.helper.LogHelper; +import java.net.NetworkInterface; + public class OshiHWIDProvider implements LauncherHWIDInterface { public SystemInfo systemInfo; public HardwareAbstractionLayer hardware; @@ -111,6 +113,9 @@ public void printHardwareInformation() { for(NetworkIF networkIF : hardware.getNetworkIFs()) { LogHelper.debug("Network Interface: %s mac: %s", networkIF.getName(), networkIF.getMacaddr()); + NetworkInterface network = networkIF.getNetworkInterface(); + if(network.isLoopback() || network.isVirtual()) continue; + LogHelper.debug("Network Interface display: %s name: %s", network.getDisplayName(), network.getName()); for(String ipv4 : networkIF.getIPv4addr()) { if(ipv4.startsWith("127.")) continue;