From c17cf823ca956345ab2ca28c8c05c6385bc01f35 Mon Sep 17 00:00:00 2001 From: Ragib Badaruddin Date: Thu, 7 Mar 2024 17:27:52 +0800 Subject: [PATCH] PORT env var --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6daec05..c382570 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,7 @@ struct Args { config_url: FileOrUrl, /// Sets a custom listener port - #[arg(short, long, value_name = "PORT", default_value = "53")] + #[arg(short, long, env, value_name = "PORT", default_value = "53")] port: u16, /// Sets a custom forward resolvers