Merge "Revert "Big Switch: Check source_address attribute exists""
This commit is contained in:
commit
0a630db36c
@ -566,8 +566,8 @@ class HTTPSConnectionWithValidation(httplib.HTTPSConnection):
|
|||||||
combined_cert = None
|
combined_cert = None
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
sock = socket.create_connection((self.host, self.port), self.timeout,
|
sock = socket.create_connection((self.host, self.port),
|
||||||
getattr(self, 'source_address', None))
|
self.timeout, self.source_address)
|
||||||
if self._tunnel_host:
|
if self._tunnel_host:
|
||||||
self.sock = sock
|
self.sock = sock
|
||||||
self._tunnel()
|
self._tunnel()
|
||||||
|
Loading…
Reference in New Issue
Block a user