- proxies = {
- 'http': 'http://{}:80'.format(host),
- 'https': 'http://{}:443'.format(host),
- }
+ orig_create_connection = urllib3.util.connection.create_connection
+ def patched_create_connection(address, *args, **kwargs):
+ _host, port = address
+ return orig_create_connection((host, port), *args, **kwargs)