Deploy ttstd relay and configure secure public WSS clients

This commit is contained in:
tongtong committed 2026-11-12 13:08:04 +08:00
1 parent 82adce545d
commit c38f067bea
16 files changed
+384 -24

No files matched your search

+2
View File
@@ -59,6 +59,7 @@ async fn serve_session(args: Arc<Args>, session: String) -> Result<()> {
&[("device", &args.device), ("session", &session)],
)?,
&args.token,
args.network.connect_address.as_deref(),
)
.await?;
relay(tcp, ws).await
@@ -68,6 +69,7 @@ async fn online(args: Arc<Args>) -> Result<()> {
let mut ws = dial(
args.network.url("/v1/agent", &[("device", &args.device)])?,
&args.token,
args.network.connect_address.as_deref(),
)
.await?;
let hello = next_control(&mut ws).await?;