Skip to content

Commit bd80f14

Browse files
committed
Swap maximum_version for minumum_version in comment
1 parent d7b253c commit bd80f14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/oauth-get-token.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@ def do_GET (self):
156156
# compromised local host will still get the credentials.
157157
context = ssl.SSLContext(ssl_version=ssl.PROTOCOL_TLS_SERVER)
158158

159-
# This should not be needed. Uses Python 3.10+ setting.
160-
# context.maximum_version = ssl.TLSVersion.TLSv1_2
161-
# for previous versions maybe:
159+
# This should not be needed as PROTOCOL_TLS_SERVER disables
160+
# unsafe protocols. Uses Python 3.10+ setting ssl.TLSVersion....
161+
# context.minimum_version = ssl.TLSVersion.TLSv1_2
162+
# for previous Python versions 3.6+ maybe:
162163
# ssl.PROTOCOL_TLSv1_2
163164
# would work?
164165

0 commit comments

Comments
 (0)