Skip to content

Commit

Permalink
Add back proxy tunnel code
Browse files Browse the repository at this point in the history
(cherry picked from commit 5e43f39)
  • Loading branch information
mikemanger committed Dec 6, 2024
1 parent 0271064 commit 802a56d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/createsend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def connect(self):
sock = socket.create_connection(
(self.host, self.port), **self.connection_kwargs)

if self._tunnel_host:
self._tunnel()

cert_path = os.path.join(os.path.dirname(__file__), 'cacert.pem')

context = ssl.SSLContext(protocol=ssl.PROTOCOL_TLS_CLIENT)
Expand Down

0 comments on commit 802a56d

Please sign in to comment.