Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SNI Handling in Socket class when sni is unspecified #38

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

jptomoya
Copy link
Contributor

Fix SNI Handling in Socket class when sni is unspecified

What's this Pull Request for?

Choose one or more of the following items.

  • Bug fix
  • Add/Remove feature
  • Cleaning code (including optimization/typo fix)
  • Others

Please explain the detail here:
Fixes an issue where SNI was not enabled when ssl=True was specified in the Socket without explicitly specifying SNI.
In testing, uses the site (https://check-tls.akamaized.net/v1/tlssni.json), which returns the SNI status of the request.

What have you done so far?

Tell me what you've tested to assure your change is right.

  • All tests passed on your machine (python -m unittest)
  • Added test cases for new feature
  • Nothing / Test not required

(It's not mandatory to check even one of them, but test cases make it easy for the author to review your PR.)

Comment

@ptr-yudai
Copy link
Owner

LTGM

@ptr-yudai ptr-yudai merged commit 9095c54 into ptr-yudai:master Nov 11, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants