Skip to content

Commit

Permalink
fix: openssl ciphers
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Dec 4, 2024
1 parent f2a906c commit 03cd7af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wikiteam3/utils/monkey_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class WakeTLSAdapter(requests.adapters.HTTPAdapter):
Workaround for bad SSL/TLS
"""
def init_poolmanager(self, connections, maxsize, block=False):
# https://www.openssl.org/docs/manmaster/man1/openssl-ciphers.html
ctx = create_urllib3_context(ciphers="ALL:COMPLMENTOFDEFAULT:eNULL:@SECLEVEL=0")
# https://docs.openssl.org/master/man1/openssl-ciphers/
ctx = create_urllib3_context(ciphers="ALL:COMPLEMENTOFDEFAULT:COMPLEMENTOFALL:eNULL:@SECLEVEL=0")

ctx.options &= ~ssl.OP_NO_TLSv1_3 & ~ssl.OP_NO_TLSv1_2 & ~ssl.OP_NO_TLSv1_1 & ~ssl.OP_NO_TLSv1
with warnings.catch_warnings():
Expand Down

0 comments on commit 03cd7af

Please sign in to comment.