From fb1de8e2105256890cf2c798cc00186569acdba1 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Sun, 9 May 2021 02:17:23 +0900 Subject: [PATCH] shared(wg): don't fail silently on bringing the interface up --- shared/src/wg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/wg.rs b/shared/src/wg.rs index a5de88f..8143d0f 100644 --- a/shared/src/wg.rs +++ b/shared/src/wg.rs @@ -54,10 +54,10 @@ pub fn set_addr(interface: &InterfaceName, addr: IpNetwork) -> Result<(), Error> "ip", &["address", "replace", &addr.to_string(), "dev", &interface], )?; - let _ = cmd( + cmd( "ip", &["link", "set", "mtu", "1420", "up", "dev", &interface], - ); + )?; Ok(()) }