feat: Make bind ip configurable through cli
This commit is contained in:
+5
-1
@@ -1,3 +1,4 @@
|
||||
use std::net::IpAddr;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use clap::{Args, Parser, Subcommand};
|
||||
@@ -50,5 +51,8 @@ pub enum Commands {
|
||||
/// Generate completions for your current shell
|
||||
ShellCompletions,
|
||||
/// Serve config files over tftp
|
||||
Serve,
|
||||
Serve {
|
||||
#[arg(long, default_value = "0.0.0.0")]
|
||||
ip: IpAddr,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user