Skip to content

Commit

Permalink
bash command issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Jul 20, 2024
1 parent a58bda5 commit c69b4bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tproxy-config"
version = "6.0.1"
version = "6.0.2"
edition = "2021"
description = "Transparent proxy configuration"
license = "MIT"
Expand Down
1 change: 0 additions & 1 deletion src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ fn configure_dns_servers(iface_name: Option<String>, 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::<Vec<String>>().join(" ");
run_command("networksetup", &["-setdnsservers", &iface_name, &addrs])?;
}
Expand Down

0 comments on commit c69b4bc

Please sign in to comment.