diff --git a/Cargo.toml b/Cargo.toml index 0fe3150..ab10d97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tproxy-config" -version = "6.0.1" +version = "6.0.2" edition = "2021" description = "Transparent proxy configuration" license = "MIT" diff --git a/src/macos.rs b/src/macos.rs index 52fe3d4..cba172d 100644 --- a/src/macos.rs +++ b/src/macos.rs @@ -267,7 +267,6 @@ fn configure_dns_servers(iface_name: Option, service_id: &str, dns_serve // Maybe one day the above settings will fully take effect, and this command can be removed. if let Some(iface_name) = iface_name { // networksetup -setdnsservers "$iface_name" $servers - let iface_name = format!("\"{}\"", iface_name); let addrs = dns_servers.iter().map(|x| x.to_string()).collect::>().join(" "); run_command("networksetup", &["-setdnsservers", &iface_name, &addrs])?; }