修改百度API地址
This commit is contained in:
@@ -98,7 +98,7 @@ char *GetLocalAddr(char *url)
|
||||
char *CurlGetIpArea(char *ip)
|
||||
{
|
||||
char url[256] = { 0 };
|
||||
snprintf(url, sizeof(url), "https://qifu.baidu.com/ip/geo/v1/district?ip=%s", ip);
|
||||
snprintf(url, sizeof(url), "https://qifu-api.baidubce.com/ip/geo/v1/district?ip=%s", ip);
|
||||
|
||||
CURL *curl_handle;
|
||||
CURLcode res;
|
||||
|
||||
Reference in New Issue
Block a user