PublicIP: add option --publicip-ipv6

This commit is contained in:
李通洲 committed 2024-05-09 15:54:49 +08:00
1 parent 7eb145fb7f
commit acc77ebddd
8 files changed
+51 -12

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ static const char* connectAndSend(FFNetworkingState* state)
struct addrinfo* addr;
if(getaddrinfo(state->host.chars, "80", &(struct addrinfo) {
.ai_family = AF_INET,
.ai_family = state->ipv6 ? AF_INET6 : AF_INET,
.ai_socktype = SOCK_STREAM,
}, &addr) != 0)
{