Skip to content

Commit 802a56d

Browse files
committed
Add back proxy tunnel code
(cherry picked from commit 5e43f39)
1 parent 0271064 commit 802a56d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/createsend/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ def connect(self):
8787
sock = socket.create_connection(
8888
(self.host, self.port), **self.connection_kwargs)
8989

90+
if self._tunnel_host:
91+
self._tunnel()
92+
9093
cert_path = os.path.join(os.path.dirname(__file__), 'cacert.pem')
9194

9295
context = ssl.SSLContext(protocol=ssl.PROTOCOL_TLS_CLIENT)

0 commit comments

Comments
 (0)