src/config/network.rs: avoid newline after family options

This commit is contained in:
Dietmar Maurer 2020-04-23 11:30:41 +02:00
parent 5e4e88e83f
commit 659c3be3d5

View File

@ -251,14 +251,15 @@ impl Interface {
if let Some(method) = self.method_v4 {
writeln!(w, "iface {} inet {}", self.name, method_to_str(method))?;
self.write_iface_attributes_v4(w, method)?;
self.write_iface_attributes(w)?;
writeln!(w)?;
}
if let Some(method) = self.method_v6 {
writeln!(w, "iface {} inet6 {}", self.name, method_to_str(method))?;
self.write_iface_attributes_v6(w, method)?;
self.write_iface_attributes(w)?;
writeln!(w)?;
}
self.write_iface_attributes(w)?;
}
Ok(())
}