diff --git a/backend/src/main.rs b/backend/src/main.rs index 1812da3..b9f3077 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -73,6 +73,10 @@ struct Args { /// Password to use for authentication. Not reccommended, use the prompt instead #[arg(short = 'k', long)] password: Option, + + /// Access address + #[arg(short = 'a', long, default_value = "127.0.0.1")] + address: String, } fn main() { @@ -148,7 +152,7 @@ fn main() { task::block_on(async { app - .listen(format!("127.0.0.1:{}", args.port)) + .listen(format!("{}:{}", args.address, args.port)) .await .unwrap(); })