mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07: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:
parent
502ea66f15
commit
fe3ad5e2cc
4 changed files with 46 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue