diff --git a/IOB-WIN/IobGeneric.cs b/IOB-WIN/IobGeneric.cs index 171d58db..2eb53b95 100644 --- a/IOB-WIN/IobGeneric.cs +++ b/IOB-WIN/IobGeneric.cs @@ -1038,7 +1038,6 @@ namespace IOB_WIN IPInterfaceProperties properties = adapter.GetIPProperties(); //sMacAddress = adapter.GetPhysicalAddress().ToString(); sMacAddress = string.Join(":", (from z in adapter.GetPhysicalAddress().GetAddressBytes() select z.ToString("X2")).ToArray()); - //sMacAddress = properties.UnicastAddresses[0].Address.ToString(); } } return sMacAddress; @@ -1086,6 +1085,7 @@ namespace IOB_WIN { string answ = ""; var client = new WebClient(); + client.Headers.Add("user-agent", utils.CRS("appName")); answ = client.DownloadString(URL); // restituisco valore! return answ;