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:
@ -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)
|
||||
|
Reference in New Issue
Block a user