Commit 2ed59df0 authored by Łukasz Nowak's avatar Łukasz Nowak

fixup! recurlests: Provide shorthand IP option

parent 8331235f
......@@ -97,6 +97,7 @@ class Recurlests(object):
resolve_all = {}
parsed = urllib.parse.urlparse(url)
port = parsed.port or 443 if parsed.scheme == 'https' else 80
resolve_all[port] = ip
if resolve_all is not None:
for port, ip_ in resolve_all.items():
command_list.extend(['--resolve', '*:%s:%s' % (port, ip_)])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment