Skip to content

Commit

Permalink
Pr4 (#7)
Browse files Browse the repository at this point in the history
* add files to .gitignore

* default to empty interface allowing auto-picking

---------

Co-authored-by: Chris Kennedy <[email protected]>
  • Loading branch information
groovybits and Chris Kennedy authored Dec 9, 2023
1 parent b02b361 commit f6569ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/target
capture.ts
Cargo.lock
src/bin/probe.rs.main
src/bin/probe.rs.staging
.env

2 changes: 1 addition & 1 deletion src/bin/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn main() {
let target_port: i32 = env::var("TARGET_PORT").unwrap_or("5556".to_string()).parse().expect(&format!("Invalid format for TARGET_PORT"));
let target_ip: &str = &env::var("TARGET_IP").unwrap_or("127.0.0.1".to_string());

let source_device: &str = &env::var("SOURCE_DEVICE").unwrap_or("en0".to_string());
let source_device: &str = &env::var("SOURCE_DEVICE").unwrap_or("".to_string());

let source_port: i32 = env::var("SOURCE_PORT").unwrap_or("10000".to_string()).parse().expect(&format!("Invalid format for SOURCE_PORT"));
let source_ip: &str = &env::var("SOURCE_IP").unwrap_or("224.0.0.200".to_string());
Expand Down

0 comments on commit f6569ae

Please sign in to comment.