Skip to content

Commit 7954521

Browse files
committed
Bump version 7.0.4
1 parent 3ade7df commit 7954521

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tproxy-config"
3-
version = "7.0.3"
3+
version = "7.0.4"
44
edition = "2024"
55
description = "Transparent proxy configuration"
66
license = "MIT"

src/macos.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,9 @@ pub(crate) fn flush_dns_cache() -> std::io::Result<()> {
321321
if crate::compare_version(&ver, "10.12") >= 0 {
322322
// MacOS version 10.12 and later
323323
// Command: `sudo killall -HUP mDNSResponder`
324-
run_command("killall", &["-HUP", "mDNSResponder"])?;
324+
if let Err(e) = run_command("killall", &["-HUP", "mDNSResponder"]) {
325+
log::debug!("Failed to flush DNS cache: {e}");
326+
}
325327
} else {
326328
// to make the code simpler, we do nothing for MacOS version 10.11 and earlier
327329
}

0 commit comments

Comments
 (0)