mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-06 21:11:43 -07:00
(1) Tweak LAN locator beacon frequencies, (2) Windows virtual networks
now show up as *real* networks and prompt the user to set their location and firewall status (public, private, home/work, etc.). The hack used to achieve #2 should not be examined by children or those suffering from epilepsy or heart conditions.
This commit is contained in:
parent
f25bd41a03
commit
f8d4611d15
9 changed files with 255 additions and 63 deletions
|
@ -151,7 +151,9 @@ RoutingTable::Entry WindowsRoutingTable::set(const InetAddress &destination,cons
|
|||
_copyInetAddressToSockaddrInet(gateway,nr.NextHop);
|
||||
nr.Metric = metric;
|
||||
nr.Protocol = MIB_IPPROTO_NETMGMT;
|
||||
CreateIpForwardEntry2(&nr);
|
||||
DWORD result = CreateIpForwardEntry2(&nr);
|
||||
if (result != NO_ERROR)
|
||||
return RoutingTable::Entry();
|
||||
}
|
||||
|
||||
std::vector<RoutingTable::Entry> rtab(get(true,true));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue