We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465203e commit 014ed27Copy full SHA for 014ed27
src/sdl3-net/SDL_net.c
@@ -352,8 +352,13 @@ static NET_Status ResolveAddress(NET_Address *addr)
352
struct addrinfo *ainfo = NULL;
353
int rc;
354
355
+ struct addrinfo hints;
356
+ memset(&hints, 0, sizeof(hints));
357
+ hints.ai_family = AF_INET; // Nur IPv4 anfordern
358
+ hints.ai_socktype = SOCK_STREAM;
359
+
360
//SDL_Log("getaddrinfo '%s'", addr->hostname);
- rc = getaddrinfo(addr->hostname, NULL, NULL, &ainfo);
361
+ rc = getaddrinfo(addr->hostname, NULL, &hints, &ainfo);
362
//SDL_Log("rc=%d", rc);
363
if (rc != 0) {
364
addr->errstr = CreateGetAddrInfoErrorString(rc);
0 commit comments