Skip to content

Comments

Added option to specify the network interface (now it works on FreeBSD)#21

Open
rm1984 wants to merge 1 commit intojvns:mainfrom
rm1984:main
Open

Added option to specify the network interface (now it works on FreeBSD)#21
rm1984 wants to merge 1 commit intojvns:mainfrom
rm1984:main

Conversation

@rm1984
Copy link

@rm1984 rm1984 commented Apr 22, 2021

Hi,
this is a pull request to fix my issue #20 .
It adds a new command line parameter to specify a network interface to listen on.
Now it works on FreeBSD (because it doesn't support the "any" inferface).
Bye,
Riccardo

Ok(m) => m,
Err(f) => {
panic!(f.to_string())
panic!("{}", f.to_string())
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this produced a warning

let mut opts = Opts {
source: Source::Port(53),
timestamp: matches.opt_present("t"),
nic: "any".to_string(),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default value to "any"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant