aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index db7833c..6b41ec9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -55,7 +55,7 @@ fn main() {
async fn run() -> anyhow::Result<!> {
let config = Arc::new(RwLock::new(Arc::new(serde_yaml::from_str::<Config>(
- &read_to_string("proxy.yaml")?,
+ &read_to_string(std::env::args().nth(1).unwrap_or("proxy.yaml".to_string()))?,
)?)));
config::watch(config.clone());