shared(wg): don't fail silently on bringing the interface up

pull/72/head
Jake McGinty 2021-05-09 02:17:23 +09:00
parent 2ce552cc36
commit fb1de8e210
1 changed files with 2 additions and 2 deletions

View File

@ -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(())
}