1
0
mirror of https://github.com/tonarino/innernet.git synced 2024-11-30 09:06:44 +02:00

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

This commit is contained in:
Jake McGinty 2021-05-09 02:17:23 +09:00
parent 2ce552cc36
commit fb1de8e210

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