shared(wg): don't fail silently on bringing the interface up
parent
2ce552cc36
commit
fb1de8e210
|
@ -54,10 +54,10 @@ pub fn set_addr(interface: &InterfaceName, addr: IpNetwork) -> Result<(), Error>
|
||||||
"ip",
|
"ip",
|
||||||
&["address", "replace", &addr.to_string(), "dev", &interface],
|
&["address", "replace", &addr.to_string(), "dev", &interface],
|
||||||
)?;
|
)?;
|
||||||
let _ = cmd(
|
cmd(
|
||||||
"ip",
|
"ip",
|
||||||
&["link", "set", "mtu", "1420", "up", "dev", &interface],
|
&["link", "set", "mtu", "1420", "up", "dev", &interface],
|
||||||
);
|
)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue