Пример #1
0
 // Token: 0x06000072 RID: 114 RVA: 0x00005B24 File Offset: 0x00003D24
 public static string smethod_6()
 {
     foreach (NetworkInterface networkInterface in NetworkInterface.GetAllNetworkInterfaces())
     {
         if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Wireless80211 || (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet && networkInterface.OperationalStatus == OperationalStatus.Up))
         {
             bool flag = false;
             foreach (UnicastIPAddressInformation unicastIPAddressInformation in networkInterface.GetIPProperties().UnicastAddresses)
             {
                 if (unicastIPAddressInformation.Address.AddressFamily == AddressFamily.InterNetwork && unicastIPAddressInformation.AddressPreferredLifetime != 4294967295L)
                 {
                     flag = (unicastIPAddressInformation.Address.ToString() == GClass11.smethod_5());
                 }
             }
             if (flag)
             {
                 return(GClass5.smethod_0(networkInterface.GetPhysicalAddress().ToString()));
             }
         }
     }
     return("-");
 }