Ensuring the whitelist is observed in another instance.

systray
MCARDLE Sean M 2016-11-18 19:53:57 -08:00
parent 224b5700c7
commit d6df318169
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ namespace WifiSitter
this.Nics = QueryNetworkAdapters(NicWhitelist);
// Loop through nics and add id:state to _originalNicState list
Nics.ForEach(x => _originalNicState.Add(new string[] { x.Id, x.IsEnabled.ToString() }));
Nics.Where(x => !NicWhitelist.Any(y => x.Description.StartsWith(y))).ToList()
.ForEach(x => _originalNicState.Add(new string[] { x.Id, x.IsEnabled.ToString() }));
_ignoreAdapters = NicWhitelist;