mirror of
https://github.com/tonarino/innernet.git
synced 2025-01-06 03:54:04 +02:00
wireguard-control: style tweak
This commit is contained in:
parent
16ac280807
commit
7d5ad8e078
@ -211,8 +211,7 @@ fn add_del(iface: &InterfaceName, add: bool) -> io::Result<()> {
|
||||
} else {
|
||||
RtnlMessage::DelLink(message)
|
||||
};
|
||||
let result = netlink_request_rtnl(rtnl_message, Some(NLM_F_REQUEST | NLM_F_ACK | extra_flags));
|
||||
match result {
|
||||
match netlink_request_rtnl(rtnl_message, Some(NLM_F_REQUEST | NLM_F_ACK | extra_flags)) {
|
||||
Err(e) if e.kind() != io::ErrorKind::AlreadyExists => Err(e),
|
||||
_ => Ok(()),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user