Skip to content

Commit

Permalink
Added note about limited cross-platform support for GetAllNetworkInte…
Browse files Browse the repository at this point in the history
…rfaces
  • Loading branch information
Rushyo committed Dec 17, 2017
1 parent afd55d6 commit a134f81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions VindicateLib/NetworkHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ internal static class NetworkHelper
public static UnicastIPAddressInformation GetNetworkAddressInformation(String preferredAddress)
{
//Get list of active IPv4 interface addresses
#warning GetAllNetworkInterfaces not supported outside Linux + Windows
IEnumerable<UnicastIPAddressInformation> eligibleAddresses = NetworkInterface
.GetAllNetworkInterfaces()
.Where(i => i.OperationalStatus == OperationalStatus.Up || i.OperationalStatus == OperationalStatus.Unknown)
Expand Down

0 comments on commit a134f81

Please sign in to comment.