bugfix: 修复了通过cmsg获取IP归属地的问题
This commit is contained in:
@@ -141,7 +141,7 @@ static int get_ip_client_geolocation(struct tfe_cmsg * cmsg, cJSON *per_hit_obj)
|
||||
{
|
||||
unsigned int i=0, j=0;
|
||||
char opt_val[128]={0}; uint16_t opt_out_size;
|
||||
const char *client_geo_area_map[] = {"client_country","client_province","client_city","client_subdivision"};
|
||||
const char *client_geo_area_map[] = {"client_country","client_super_administrative_area","client_administrative_area","client_sub_administrative_area"};
|
||||
|
||||
for(i=TFE_CMSG_SRC_REGION_STR; i <= TFE_CMSG_DST_SUBDIVISION_STR; i+=2)
|
||||
{
|
||||
@@ -159,7 +159,7 @@ static int get_ip_server_geolocation(struct tfe_cmsg * cmsg, cJSON *per_hit_obj)
|
||||
{
|
||||
unsigned int i=0, j=0;
|
||||
char opt_val[128]={0}; uint16_t opt_out_size;
|
||||
const char *server_geo_area_map[] = {"server_country","server_province","server_city","server_subdivision"};
|
||||
const char *server_geo_area_map[] = {"server_country","server_super_administrative_area","server_administrative_area","server_sub_administrative_area"};
|
||||
|
||||
for(i=TFE_CMSG_DST_REGION_STR; i <= TFE_CMSG_DST_SUBDIVISION_STR; i+=2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user