mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
[FEATURE] Дополнительная информация по сетевым интерфейсам в HWID
This commit is contained in:
parent
24b8227685
commit
124f1ddbeb
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
||||||
import ru.gravit.launcher.OshiHWID;
|
import ru.gravit.launcher.OshiHWID;
|
||||||
import ru.gravit.utils.helper.LogHelper;
|
import ru.gravit.utils.helper.LogHelper;
|
||||||
|
|
||||||
|
import java.net.NetworkInterface;
|
||||||
|
|
||||||
public class OshiHWIDProvider implements LauncherHWIDInterface {
|
public class OshiHWIDProvider implements LauncherHWIDInterface {
|
||||||
public SystemInfo systemInfo;
|
public SystemInfo systemInfo;
|
||||||
public HardwareAbstractionLayer hardware;
|
public HardwareAbstractionLayer hardware;
|
||||||
|
@ -111,6 +113,9 @@ public void printHardwareInformation() {
|
||||||
for(NetworkIF networkIF : hardware.getNetworkIFs())
|
for(NetworkIF networkIF : hardware.getNetworkIFs())
|
||||||
{
|
{
|
||||||
LogHelper.debug("Network Interface: %s mac: %s", networkIF.getName(), networkIF.getMacaddr());
|
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())
|
for(String ipv4 : networkIF.getIPv4addr())
|
||||||
{
|
{
|
||||||
if(ipv4.startsWith("127.")) continue;
|
if(ipv4.startsWith("127.")) continue;
|
||||||
|
|
Loading…
Reference in a new issue