Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def _make_connection(self, result):
- """Do the real connect call."""
- host, port = result
- ssl_context = get_ssl_context(self.disable_ssl_verify)
- proxy = urlparse(os.environ['https_proxy'])
- factory = ProxyTunnelFactory(host, port, self, proxy.username, proxy.password)
- self.connector = reactor.connectTCP(proxy.hostname, proxy.port, factory)
- def connect(self):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement