Skip to content

Commit 88c5236

Browse files
committed
Bugfix if no hardware networks are enabled
1 parent 5bbb8a2 commit 88c5236

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ static void Clear()
161161
static void AddressChangedCallback(object sender, EventArgs e)
162162
{
163163
NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
164+
165+
if(adapters == null) // No networkadapters found
166+
{
167+
return;
168+
}
169+
164170
var networkChangeAdapterList = settings.NetworkChangeAdapters.Split(",");
165171

166172
foreach (NetworkInterface n in adapters)

0 commit comments

Comments
 (0)