Advertisement
Guest User

proxy_ubuntu_sync

a guest
Dec 21st, 2011
659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. def _make_connection(self, result):
  3. """Do the real connect call."""
  4. host, port = result
  5. ssl_context = get_ssl_context(self.disable_ssl_verify)
  6.  
  7. proxy = urlparse(os.environ['https_proxy'])
  8. factory = ProxyTunnelFactory(host, port, self, proxy.username, proxy.password)
  9. self.connector = reactor.connectTCP(proxy.hostname, proxy.port, factory)
  10.  
  11. def connect(self):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement