Skip to content

Commit

Permalink
check change
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Dec 28, 2023
1 parent 887a9f3 commit a5d377d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions salt/transport/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,17 @@ async def getstream(self, **kwargs):
self._tcp_client = TCPClientKeepAlive(
self.opts, resolver=self.resolver
)
ctx = None
if self.ssl is not None:
ctx = salt.transport.base.ssl_context(
self.ssl, server_side=False
)
# ctx = None
# if self.ssl is not None:
# ctx = salt.transport.base.ssl_context(
# self.ssl, server_side=False
# )
stream = await asyncio.wait_for(
self._tcp_client.connect(
ip_bracket(self.host, strip=True),
self.port,
ssl_options=ctx,
# ssl_options=ctx,
ssl_options=self.opts.get("ssl"),
**kwargs,
),
1,
Expand Down

0 comments on commit a5d377d

Please sign in to comment.