Revision 049a5a10 utils/whois.py
b/utils/whois.py | ||
---|---|---|
8 | 8 |
def query(query, hostname, flags): |
9 | 9 |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
10 | 10 |
s.connect((hostname, 43)) |
11 |
s.send(" -i origin -r -K -T route -T route6 " + query + "\r\n") |
|
11 |
# as IPv6 is not supported by flowspec for the time ommit -T route6 |
|
12 |
s.send(" -i origin -r -K -T route " + query + "\r\n") |
|
12 | 13 |
response = '' |
13 | 14 |
while True: |
14 | 15 |
d = s.recv(4096) |
Also available in: Unified diff