Skip to content

Commit 7075730

Browse files
Merge pull request #1 from IPQualityScore/v1.0.5
Fix bug with some IPv6 readers.
2 parents 0f7ea70 + ff870d0 commit 7075730

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

IPQualityScore/DBReader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def IP2Literal(self,ip):
192192
result = []
193193
if (self.ipv6):
194194
for block in self.Expand(ip).split(":"):
195-
for x in bin(int(block, 16))[2:] : result.append((x))
195+
for x in bin(int(block, 16))[2:].zfill(16) : result.append(int(x))
196196
else:
197197
for block in ip.split("."):
198198
for x in bin(int(block, 10))[2:].zfill(8) : result.append(int(x))

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="PythonIPQSDBReader",
8-
version="1.0.4",
8+
version="1.0.5",
99
author="IPQualityScore",
1010
author_email="support@ipqualityscore.com",
1111
description="IPQualityScore IP Address Reputation & Proxy Detection DB Reader",

0 commit comments

Comments
 (0)