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

Add TLS support to WS proxy. #492

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Subheadings to categorize changes are `added, changed, deprecated, removed, fixe
### fixed
- Nested WS proxies - if `backend=ws://localhost:8000/ws` is set, queries for `ws://localhost:8080/ws/entityX` will be linked with `ws://localhost:8000/ws/entityX`
- Updated all dependencies in both Trunk and its examples, to fix currently open security advisories for old dependencies.
- TLS support for WS proxies - if a proxy route began with `wss://...` an attempt was made
and then failed to connect to the route's target host, because `tokio-tungstenite`'s TLS
features were not enabled.

## 0.16.0
### added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tar = "0.4"
# See https://docs.rs/tokio/latest/tokio/#feature-flags - we basically use all of the features.
tokio = { version = "1", default-features = false, features = ["full"] }
tokio-stream = { version = "0.1", default-features = false, features = ["fs", "sync"] }
tokio-tungstenite = "0.17"
tokio-tungstenite = { version = "0.17", features = ["rustls-tls-native-roots"] }
toml = "0.5"
tower-http = { version = "0.3", features = ["fs", "trace"] }
tracing = "0.1"
Expand Down