Skip to content
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions crates/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,15 @@ pub enum Command {
required = true
)]
allow_client: Vec<String>,

/// What carries the relay session: auto (WebTransport, else WebSocket
/// where UDP is blocked), webtransport or websocket
#[arg(
long,
env = "YAS_UPLINK_TRANSPORT",
value_parser = ["auto", "webtransport", "websocket"]
)]
transport: Option<String>,
},

/// Print an X25519 key pair as JSON (private_key and public_key, base64url)
Expand Down
3 changes: 2 additions & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -947,8 +947,9 @@ async fn async_main() {
url,
identity,
allow_client,
transport,
} => {
if let Err(e) = uplink::cmd_uplink(url, identity, allow_client).await {
if let Err(e) = uplink::cmd_uplink(url, identity, allow_client, transport).await {
eprintln!("yas: {e}");
std::process::exit(1);
}
Expand Down
Loading
Loading