Skip to content

Commit

Permalink
Fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed Jan 3, 2024
1 parent 6468938 commit 7504054
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions console.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,18 @@ def show_help():
if __name__ == '__main__':
options = parseArgs()

http_proxies = {
"http": "http://%s:%d/" % (options.proxy_ip, options.proxy_port),
"https": "https://%s:%d/" % (options.proxy_ip, options.proxy_port)
}
http_proxies = None
if options.proxy_ip is not None:
if options.proxy_port is not None:
http_proxies = {
"http": "http://%s:%d/" % (options.proxy_ip, options.proxy_port),
"https": "https://%s:%d/" % (options.proxy_ip, options.proxy_port)
}
else:
http_proxies = {
"http": "http://%s:80/" % (options.proxy_ip),
"https": "https://%s:443/" % (options.proxy_ip)
}

if not options.target.startswith("https://") and not options.target.startswith("http://"):
options.target = "http://" + options.target
Expand Down

0 comments on commit 7504054

Please sign in to comment.