mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-03 08:15:40 +00:00
Use moonlight-stream.org instead of google.com to avoid issues in China
This commit is contained in:
parent
cd4adae22b
commit
18b704b85a
@ -177,7 +177,7 @@ bool getHopsIP4(IN_ADDR* hopAddress, int* hopAddressCount)
|
|||||||
char replyBuffer[128];
|
char replyBuffer[128];
|
||||||
};
|
};
|
||||||
|
|
||||||
host = gethostbyname("google.com");
|
host = gethostbyname("moonlight-stream.org");
|
||||||
if (host == nullptr) {
|
if (host == nullptr) {
|
||||||
printf("gethostbyname() failed: %d\n", WSAGetLastError());
|
printf("gethostbyname() failed: %d\n", WSAGetLastError());
|
||||||
return false;
|
return false;
|
||||||
|
@ -324,7 +324,7 @@ bool FindLocalInterfaceIP4Address(PSOCKADDR_IN addr)
|
|||||||
|
|
||||||
printf("Finding local IP address...");
|
printf("Finding local IP address...");
|
||||||
|
|
||||||
host = gethostbyname("google.com");
|
host = gethostbyname("moonlight-stream.org");
|
||||||
if (host == nullptr) {
|
if (host == nullptr) {
|
||||||
printf("gethostbyname() failed: %d\n", WSAGetLastError());
|
printf("gethostbyname() failed: %d\n", WSAGetLastError());
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user