Pass the port number directly rather than "https" to getaddrinfo()

Apparently, the services file in drivers\etc can be deleted and GFE still works.
This commit is contained in:
Cameron Gutman 2020-04-10 17:40:30 -07:00
parent e3e4bf608f
commit 85cd20005c

View File

@ -673,7 +673,7 @@ bool FindLocalInterfaceIPAddress(int family, PSOCKADDR_STORAGE addr)
hint.ai_socktype = SOCK_STREAM;
hint.ai_protocol = IPPROTO_TCP;
hint.ai_flags = AI_ADDRCONFIG;
err = getaddrinfo("moonlight-stream.org", "https", &hint, &result);
err = getaddrinfo("moonlight-stream.org", "443", &hint, &result);
if (err != 0 || result == NULL) {
fprintf(LOG_OUT, "getaddrinfo() failed: %d\n", err);
return false;