Skip to content

Commit

Permalink
feat(all): access address
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Sep 26, 2023
1 parent 5704be2 commit 97fe554
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ struct Args {
/// Password to use for authentication. Not reccommended, use the prompt instead
#[arg(short = 'k', long)]
password: Option<String>,

/// Access address
#[arg(short = 'a', long, default_value = "127.0.0.1")]
address: String,
}

fn main() {
Expand Down Expand Up @@ -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();
})
Expand Down

0 comments on commit 97fe554

Please sign in to comment.