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

Update the WebSocketTransport to detect the attempt to upgrade the connection to TLS. #443

Merged
merged 2 commits into from May 5, 2023

Conversation

allanbank
Copy link
Contributor

No description provided.

…nnection to TLS.

If the connection is already using TLS then continue. Otherwise raise a ProtocolError.

Fixes nats-io#442
@bruth
Copy link
Member

bruth commented May 5, 2023

Thanks for reporting this and opening a PR. I did some local evaluation and appears it can be reproduced if standard TLS and WebSocket TLS are both enabled, even without verify enabled.

Reviewing the patch now.

Copy link
Member

@bruth bruth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bruth bruth merged commit 990d30f into nats-io:main May 5, 2023
1 check 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.

None yet

2 participants