Skip to content

Commit fac1dca

Browse files
ST47tools.whois-referral
authored andcommitted
Starting to work on showing referral data
1 parent 3a32a0f commit fac1dca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public_html/gateway.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/env python
22
import sys
3-
sys.path.insert(0, '/data/project/whois/local/lib/python2.7/site-packages')
3+
#sys.path.insert(0, '/data/project/whois/local/lib/python2.7/site-packages')
44

55
import six
66
from ipwhois import IPWhois, WhoisLookupError
@@ -50,9 +50,9 @@ def lookup(ip, rdap=False):
5050
# TODO: RDAP output includes less relevant info, needs a dedicated formatter
5151
return obj.lookup_rdap()
5252
else:
53-
ret = obj.lookup_whois()
53+
ret = obj.lookup_whois(get_referral=True)
5454
# remove some fields that clutter
55-
for x in ['raw', 'raw_referral', 'referral']:
55+
for x in ['raw', 'raw_referral']:
5656
ret.pop(x, None)
5757
return ret
5858

0 commit comments

Comments
 (0)