mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 21:33:18 -07:00
Patch ipwhois literal comparison
This commit is contained in:
parent
d21a03905d
commit
16742d4705
1 changed files with 2 additions and 2 deletions
|
@ -474,7 +474,7 @@ class Whois:
|
||||||
for addr in net_range.split(', '):
|
for addr in net_range.split(', '):
|
||||||
|
|
||||||
count = addr.count('.')
|
count = addr.count('.')
|
||||||
if count is not 0 and count < 4:
|
if count != 0 and count < 4:
|
||||||
|
|
||||||
addr_split = addr.strip().split('/')
|
addr_split = addr.strip().split('/')
|
||||||
for i in range(count + 1, 4):
|
for i in range(count + 1, 4):
|
||||||
|
@ -667,7 +667,7 @@ class Whois:
|
||||||
|
|
||||||
# Only fetch the response if we haven't already.
|
# Only fetch the response if we haven't already.
|
||||||
if response is None or (not is_offline and
|
if response is None or (not is_offline and
|
||||||
asn_data['asn_registry'] is not 'arin'):
|
asn_data['asn_registry'] != 'arin'):
|
||||||
|
|
||||||
log.debug('Response not given, perform WHOIS lookup for {0}'
|
log.debug('Response not given, perform WHOIS lookup for {0}'
|
||||||
.format(self._net.address_str))
|
.format(self._net.address_str))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue