diff options
author | dnobori <da.git@softether.co.jp> | 2015-02-02 06:33:23 +0300 |
---|---|---|
committer | dnobori <da.git@softether.co.jp> | 2015-02-02 06:33:23 +0300 |
commit | 3305046721262623b768f8f31dc027672a9b29e0 (patch) | |
tree | 0028f352b54b2c9e15358d765d5ec081dd1f74ab /src/Mayaqua | |
parent | ef4c0d58664d4280088f3ef27250b06fd9c8e89e (diff) |
v4.13-9525-beta
Diffstat (limited to 'src/Mayaqua')
-rw-r--r-- | src/Mayaqua/Network.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Mayaqua/Network.c b/src/Mayaqua/Network.c index 3f99066f..b64fc253 100644 --- a/src/Mayaqua/Network.c +++ b/src/Mayaqua/Network.c @@ -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)
|