1
0
mirror of https://github.com/tonarino/innernet.git synced 2024-12-04 10:35:01 +02:00

meta: cargo fmt

This commit is contained in:
Jake McGinty 2022-02-05 04:18:05 +09:00
parent 9270b9662a
commit 9ba864be56

View File

@ -100,10 +100,7 @@ pub fn up(
.set_private_key(wireguard_control::Key::from_base64(private_key).unwrap()) .set_private_key(wireguard_control::Key::from_base64(private_key).unwrap())
.apply(interface, network.backend)?; .apply(interface, network.backend)?;
set_addr(interface, address)?; set_addr(interface, address)?;
set_up( set_up(interface, network.mtu.unwrap_or(1412))?;
interface,
network.mtu.unwrap_or(1412),
)?;
if !network.no_routing { if !network.no_routing {
add_route(interface, address)?; add_route(interface, address)?;
} }