1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-06 07:44:57 +03:00

v4.13-9525-beta

This commit is contained in:
dnobori
2015-02-02 12:33:23 +09:00
parent ef4c0d5866
commit 3305046721
278 changed files with 281 additions and 269 deletions

View File

@ -4576,6 +4576,18 @@ bool GetMyPrivateIP(IP *ip, bool from_vg)
return true;
}
char *GetRandHostNameForGetMyPrivateIP()
{
char *hosts[] =
{
"www.microsoft.com",
"www.yahoo.com",
"www.bing.com",
};
UINT num_hosts = 3;
return hosts[Rand32() % num_hosts];
}
// Function to wait until changing any IP address of the host or expiring the specified time or waking the event
void WaitUntilHostIPAddressChanged(void *p, EVENT *event, UINT timeout, UINT ip_check_interval)