feat: Make bind ip configurable through cli
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user