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:
parent
2ce552cc36
commit
fb1de8e210
@ -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(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user