Skip to content

Commit

Permalink
Update deprecated aiohttp TCPConnector SSL setting (#106)
Browse files Browse the repository at this point in the history
Instead of `verify_ssl`, `ssl_context` and `fingerprint`, `ssl` is used now.
https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.TCPConnector
  • Loading branch information
Privat33r-dev authored Aug 24, 2024
1 parent b3bd137 commit 5a780ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clairvoyance/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ async def post(

async with self._semaphore:
if not self._session:
connector = aiohttp.TCPConnector(
verify_ssl=(not self.disable_ssl_verify)
)
connector = aiohttp.TCPConnector(ssl=not self.disable_ssl_verify)
self._session = aiohttp.ClientSession(
headers=self._headers, connector=connector
)
Expand Down

0 comments on commit 5a780ff

Please sign in to comment.