diff --git a/shared/src/wg.rs b/shared/src/wg.rs index 2a9ec3f..34e4204 100644 --- a/shared/src/wg.rs +++ b/shared/src/wg.rs @@ -8,8 +8,8 @@ use wgctrl::{Backend, Device, DeviceUpdate, InterfaceName, PeerConfigBuilder}; fn cmd(bin: &str, args: &[&str]) -> Result { let output = Command::new(bin).args(args).output()?; - log::debug!("{} {}", bin, args.join(" ")); - log::debug!("status code {:?}", output.status.code()); + log::debug!("cmd: {} {}", bin, args.join(" ")); + log::debug!("status: {:?}", output.status.code()); log::trace!("stdout: {}", String::from_utf8_lossy(&output.stdout)); log::trace!("stderr: {}", String::from_utf8_lossy(&output.stderr)); if output.status.success() { @@ -91,7 +91,6 @@ pub fn up( if !network.no_routing { add_route(interface, address)?; } - cmd("ip", &["link"])?; Ok(()) }