mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-21 00:23:05 +00:00
Fix a Windows bug in refactored tap code, and always make sure we have a firewall exception rule on startup.
This commit is contained in:
@ -706,8 +706,9 @@ NET_IFINDEX WindowsEthernetTap::_getDeviceIndex()
|
||||
|
||||
for(ULONG i=0;i<ift->NumEntries;++i) {
|
||||
if (ift->Table[i].InterfaceLuid.Value == _deviceLuid.Value) {
|
||||
NET_IFINDEX idx = ift->Table[i].InterfaceIndex;
|
||||
FreeMibTable(ift);
|
||||
return ift->Table[i].InterfaceIndex;
|
||||
return idx;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user