refactor: backport pcap impl

This commit is contained in:
Cain 2024-01-13 03:22:50 +00:00
parent f71796f569
commit e3d791fa5f
7 changed files with 272 additions and 235 deletions

View file

@ -182,7 +182,7 @@ fn main() -> Result<()> {
let ip = resolve_ip_or_domain(&args.ip, &mut extra_options)?;
#[cfg(feature = "packet_capture")]
gamedig::capture::setup_capture(args.capture);
gamedig::capture::setup_capture(args.capture.clone());
// Query the server using game definition, parsed IP, and user command line
// flags.