Skip to content

Commit 373f95d

Browse files
authored
Updated version number to latest.
1 parent 41c8f9d commit 373f95d

File tree

4 files changed

+31
-17
lines changed

4 files changed

+31
-17
lines changed

ChangeLog

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
2.2.0 2019-12-04
2-
* Reduced File I/O.
3-
4-
2.1.0 2019-07-03
5-
* Added support for 6to4 and Teredo.
6-
7-
2.0.0 2019-05-16
8-
* Added supports for PX5-PX8 database.
9-
10-
1.0.1 2016-12-16
11-
* Changed variable to match standard.
12-
13-
1.0.0 2016-12-15
14-
* Initial release
1+
3.1.2 2019-08-13
2+
* Updated version number to latest.
3+
4+
3.1.1 2019-08-11
5+
* Removed unwanted file.
6+
7+
3.1.0 2020-08-11
8+
* Fixed bug.
9+
10+
3.0.0 2020-07-24
11+
* Added support for 6to4 and Teredo.
12+
13+
2.2.0 2019-12-04
14+
* Reduce File I/O.
15+
16+
2.1.0 2019-07-03
17+
* Added support for 6to4 and Teredo.
18+
19+
2.0.0 2019-05-16
20+
* Added supports for PX5-PX8 database.
21+
22+
1.0.1 2016-12-16
23+
* Changed variable to match standard.
24+
25+
1.0.0 2016-12-15
26+
* Initial release

IP2Proxy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def inet_pton(t, addr):
5252
return out_addr_p.raw
5353
socket.inet_pton = inet_pton
5454

55-
_VERSION = '3.1.0'
55+
_VERSION = '3.1.2'
5656
_NO_IP = 'MISSING IP ADDRESS'
5757
_FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
5858
_INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
@@ -370,13 +370,15 @@ def _read_record(self, mid, ipv):
370370
def calc_off(what, mid):
371371
return baseaddr + mid * (self._dbcolumn * 4 + off) + off + 4 * (what[self._dbtype]-1)
372372

373+
# print(_COUNTRY_POSITION[self._dbtype])
373374
if _COUNTRY_POSITION[self._dbtype] != 0:
374375
rec.country_short = self._reads(self._readi(calc_off(_COUNTRY_POSITION, mid)) + 1)
375376

376377
rec.country_long = self._reads(self._readi(calc_off(_COUNTRY_POSITION, mid)) + 4)
377378
elif _COUNTRY_POSITION[self._dbtype] == 0:
378379
rec.country_short = _FIELD_NOT_SUPPORTED
379380
rec.country_long = _FIELD_NOT_SUPPORTED
381+
# print(rec.country_short)
380382

381383
if _REGION_POSITION[self._dbtype] != 0:
382384
rec.region = self._reads(self._readi(calc_off(_REGION_POSITION, mid)) + 1)

PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 1.0
22
Name: IP2Proxy
3-
Version: 3.1.0
3+
Version: 3.1.2
44
Summary: Python API for IP2Proxy database
55
Home-page: http://www.ip2location.com
66
Author: IP2Location

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="IP2Proxy",
8-
version="3.1.0",
8+
version="3.1.2",
99
author="IP2Location",
1010
author_email="support@ip2location.com",
1111
description="Python API for IP2Proxy database. It can be used to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exits.",

0 commit comments

Comments
 (0)