From 34f443ce1820857166f6a333bb1453b0b7778866 Mon Sep 17 00:00:00 2001 From: Elias Dalbeck Date: Mon, 16 Dec 2024 14:12:16 +0100 Subject: [PATCH] check env var for transit relay server --- cli/Cargo.toml | 2 +- cli/src/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 19947599..3f7b080f 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -28,7 +28,7 @@ rand = { workspace = true } # CLI specific dependencies magic-wormhole = { path = "..", version = "0.7", features = ["all", "entropy"] } -clap = { workspace = true, features = ["cargo", "derive", "help"] } +clap = { workspace = true, features = ["cargo", "derive", "help", "env"] } clap_complete = { workspace = true } env_logger = { workspace = true } console = { workspace = true } diff --git a/cli/src/main.rs b/cli/src/main.rs index c15aeba7..3388721d 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -120,6 +120,7 @@ struct CommonArgs { action = clap::ArgAction::Append, value_name = "tcp://HOSTNAME:PORT", value_hint = clap::ValueHint::Url, + env = "WORMHOLE_RELAY_SERVER", )] relay_server: Vec, /// Use a custom rendezvous server. Both sides need to use the same value in order to find each other.