diff options
-rw-r--r-- | helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ int helper_connect4(char *address, int port, char *ip) memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; - const int ret = getaddrinfo(NULL, address, &hints, &result); + const int ret = getaddrinfo(address, NULL, &hints, &result); if (ret != 0) { fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(ret)); return -1; |