Skip to content

Commit 15a7cb4

Browse files
committed
Fixed proxy type value returning country code.
1 parent 83f9d64 commit 15a7cb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libIP2Proxy/IP2Proxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static IP2ProxyRecord *IP2Proxy_read_record(IP2Proxy *handler, uint8_t* buffer,
437437
record->is_proxy = "0";
438438
} else {
439439
if (!record->proxy_type) {
440-
record->proxy_type = IP2Proxy_read_string(handle, IP2Proxy_read32_row(buffer, 4 * (IP2PROXY_COUNTRY_POSITION[dbtype] - 2), mem_offset));
440+
record->proxy_type = IP2Proxy_read_string(handle, IP2Proxy_read32_row(buffer, 4 * (IP2PROXY_PROXY_TYPE_POSITION[dbtype] - 2), mem_offset));
441441
}
442442

443443
if (strcmp(record->proxy_type, "DCH") == 0 || strcmp(record->proxy_type, "SES") == 0) {

libIP2Proxy/IP2Proxy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ extern "C" {
5454
#endif
5555
#endif
5656

57-
#define API_VERSION 4.1.1
57+
#define API_VERSION 4.1.2
5858
#define API_VERSION_MAJOR 4
5959
#define API_VERSION_MINOR 1
60-
#define API_VERSION_RELEASE 1
60+
#define API_VERSION_RELEASE 2
6161
#define API_VERSION_NUMERIC (((API_VERSION_MAJOR * 100) + API_VERSION_MINOR) * 100 + API_VERSION_RELEASE)
6262

6363
#define MAX_IPV4_RANGE 4294967295U

0 commit comments

Comments
 (0)