From 15e9c08a8a7be3d74907ed06164202da47f22c2f Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Mon, 31 May 2021 16:26:52 +0900 Subject: [PATCH] shared(wg): remove leftover debugging command Fixes #95 doy. --- shared/src/wg.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(()) }