ConnectivityPlugin icon indicating copy to clipboard operation
ConnectivityPlugin copied to clipboard

Error due to unknown "NetworkInterfaceType"

Open behzad62 opened this issue 7 years ago • 3 comments

Version Number of Plugin: 3.2 Device Tested On: Windows 10 Version of VS: 2017 Versions of other things you are using: Wpf app using .net 4.6.1

In the .net45 implementation (I didn't check others)," ConnectivityImplementation" constructor calls ResetConnections method which iterates on all network interfaces and throws ArgumentOutOfRangeException at the line '123' in a case of default "NetworkInterfaceType". I found out that some VPN apps might create network interfaces with unorthodox "NetworkInterfaceType" (i.e. number 53). In such a cases which are out of developer's control the Connectivity instance will fail to init, hence, plugin will be unusable. I wonder if throwing exception there is the only solution. Maybe another connection type i.e. Unknown can be defined and acted upon accordingly.

behzad62 avatar Oct 21 '18 08:10 behzad62