Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added --ipv4 option
  • Loading branch information
aohashi084 committed Mar 9, 2024
commit 134bc52163b9661bd2dc9ffcfc341bb526acd69e
1 change: 1 addition & 0 deletions modules/GetIP/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ void get_ip(wchar_t *url, wchar_t *buf, int size) {
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_write);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &data);
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
if (!curl_easy_perform(curl) && data.len && *data.ptr) {
MultiByteToWideChar(CP_UTF8, 0, data.ptr, -1, buf, size);
}
Expand Down