mirror of
https://github.com/agrinman/tunnelto.git
synced 2026-04-26 01:06:01 +03:00
Labels
No labels
Need more info
bug
duplicate
enhancement
good first issue
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tunnelto#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/agrinman/tunnelto/pull/89
Author: @godnight10061
Created: 12/28/2025
Status: ❌ Closed
Base:
master← Head:fix/issue-67-websocketerror📝 Commits (1)
f046e56Fix #67: force rustls for control websocket📊 Changes
49 files changed (+21596 additions, -33 deletions)
View changed files
📝
Cargo.lock(+134 -29)📝
Cargo.toml(+6 -1)📝
tunnelto/Cargo.toml(+5 -2)📝
tunnelto/src/main.rs(+2 -1)➕
tunnelto/src/ws.rs(+200 -0)➕
vendor/ntapi/.cargo-ok(+1 -0)➕
vendor/ntapi/.cargo_vcs_info.json(+6 -0)➕
vendor/ntapi/Cargo.toml(+40 -0)➕
vendor/ntapi/Cargo.toml.orig(+31 -0)➕
vendor/ntapi/LICENSE-APACHE(+202 -0)➕
vendor/ntapi/LICENSE-MIT(+17 -0)➕
vendor/ntapi/README.md(+17 -0)➕
vendor/ntapi/build.rs(+15 -0)➕
vendor/ntapi/src/lib.rs(+70 -0)➕
vendor/ntapi/src/macros.rs(+112 -0)➕
vendor/ntapi/src/ntapi_base.rs(+40 -0)➕
vendor/ntapi/src/ntdbg.rs(+239 -0)➕
vendor/ntapi/src/ntexapi.rs(+3013 -0)➕
vendor/ntapi/src/ntgdi.rs(+123 -0)➕
vendor/ntapi/src/ntioapi.rs(+1464 -0)...and 29 more files
📄 Description
Fixes #67.
Problem
WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" })))), preventing the tunnel from coming up.Solution
tunnelto/src/ws.rswithconnect_async_force_rustls(...)/connect_async_force_rustls_with_config(...)usingConnector::Rustlsand a trust store backed bywebpki-roots.tunnelto/src/main.rs(connect_to_wormhole) to usews::connect_async_force_rustls(config.control_url.as_str()).Tests
tunnelto/src/ws.rsusingrcgen+ a local TLS WebSocket server to validate:MaybeTlsStream::Rustls.cargo test --workspace.Notes
ntapipatch to keep Windows builds working on Rust 1.91+ (E0793 packed-field references) via[patch.crates-io]andvendor/ntapi.Risk/compat
webpki-rootsrather than the OS trust store by default. Environments relying on OS-installed custom roots may need a custom root config (supported byconnect_async_force_rustls_with_config(...)for future wiring).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.