We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f7ea70 + ff870d0 commit 7075730Copy full SHA for 7075730
2 files changed
IPQualityScore/DBReader.py
@@ -192,7 +192,7 @@ def IP2Literal(self,ip):
192
result = []
193
if (self.ipv6):
194
for block in self.Expand(ip).split(":"):
195
- for x in bin(int(block, 16))[2:] : result.append((x))
+ for x in bin(int(block, 16))[2:].zfill(16) : result.append(int(x))
196
else:
197
for block in ip.split("."):
198
for x in bin(int(block, 10))[2:].zfill(8) : result.append(int(x))
setup.py
@@ -5,7 +5,7 @@
5
6
setuptools.setup(
7
name="PythonIPQSDBReader",
8
- version="1.0.4",
+ version="1.0.5",
9
author="IPQualityScore",
10
author_email="support@ipqualityscore.com",
11
description="IPQualityScore IP Address Reputation & Proxy Detection DB Reader",
0 commit comments