From 85cd20005cd87aaf23f0b9945a836168b0788261 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 10 Apr 2020 17:40:30 -0700 Subject: [PATCH] Pass the port number directly rather than "https" to getaddrinfo() Apparently, the services file in drivers\etc can be deleted and GFE still works. --- mist/mist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mist/mist.cpp b/mist/mist.cpp index cedcc20..35bb8f7 100644 --- a/mist/mist.cpp +++ b/mist/mist.cpp @@ -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;