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
+2 -2
View File
@@ -107,11 +107,11 @@ async fn main() -> Result<(), Error> {
"crete",
&mut std::io::stdout(),
),
Commands::Serve => {
Commands::Serve { ip } => {
let re = Regex::new(r"talos/(?<cluster>.+)/(?<node>.+)\.ya?ml")
.expect("regex should be valid");
tftp::serve(move |filename, _| {
tftp::serve(ip, move |filename, _| {
let filename = filename.to_owned();
let re = re.clone();