diff options
| author | liuxueli <[email protected]> | 2021-09-02 19:30:15 +0800 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2021-09-02 11:34:50 +0000 |
| commit | 3e911b2a4c34ffbf4893216666bbe5ad73e5551a (patch) | |
| tree | 5773ca26652ec5ab797aa452a8b0bf5267d31192 /src/tsg_send_log.cpp | |
| parent | cc4ff41cc990bd741020671cf7bfceaf760ab942 (diff) | |
TSG-7626: IP归属地日志字段仅存在一级v5.3.3
Diffstat (limited to 'src/tsg_send_log.cpp')
| -rw-r--r-- | src/tsg_send_log.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index dd11c1b..0166e37 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -216,9 +216,9 @@ static int set_asn(struct TLD_handle_t *_handle, struct streaminfo *a_stream, ch if(asn_info!=NULL) { - len+=string_cat(buff, buff_len-len, asn_info->asn_id); + len+=string_cat(buff+len, buff_len-len, asn_info->asn_id); buff[len++]='('; - len+=string_cat(buff, buff_len-len, asn_info->organization); + len+=string_cat(buff+len, buff_len-len, asn_info->organization); buff[len++]=')'; TLD_append(_handle, field_name, (void *)buff, TLD_TYPE_STRING); } @@ -234,11 +234,11 @@ static int set_location(struct TLD_handle_t *_handle, struct streaminfo *a_strea if(location_info!=NULL) { - len+=string_cat(buff, buff_len-len, location_info->city_full); + len+=string_cat(buff+len, buff_len-len, location_info->city_full); buff[len++]=','; - len+=string_cat(buff, buff_len-len, location_info->province_full); + len+=string_cat(buff+len, buff_len-len, location_info->province_full); buff[len++]=','; - len+=string_cat(buff, buff_len-len, location_info->country_full); + len+=string_cat(buff+len, buff_len-len, location_info->country_full); buff[len++]=','; TLD_append(_handle, field_name, (void *)buff, TLD_TYPE_STRING); |
