feat: Make bind ip configurable through cli

This commit is contained in:
2026-10-15 04:46:48 +02:00
parent 5a5df6bfc3
commit a5594c768d
3 changed files with 12 additions and 7 deletions
+5 -1
View File
@@ -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,
},
}