This commit is contained in:
@@ -187,12 +187,10 @@ dhcp-boot=tag:bios,{bios_filename}{tftp_str}
|
||||
})?;
|
||||
|
||||
info!("Restarting dnsmasq to apply changes");
|
||||
self.opnsense_shell.exec("configctl dnsmasq restart").await
|
||||
.map_err(|e| {
|
||||
DhcpError::Configuration(format!(
|
||||
"Restarting dnsmasq failed : {e}"
|
||||
))
|
||||
})?;
|
||||
self.opnsense_shell
|
||||
.exec("configctl dnsmasq restart")
|
||||
.await
|
||||
.map_err(|e| DhcpError::Configuration(format!("Restarting dnsmasq failed : {e}")))?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
pub mod caddy;
|
||||
pub mod dhcp;
|
||||
pub mod dhcp_legacy;
|
||||
pub mod dns;
|
||||
pub mod dnsmasq;
|
||||
pub mod load_balancer;
|
||||
pub mod tftp;
|
||||
pub mod dhcp;
|
||||
pub mod dnsmasq;
|
||||
|
||||
Reference in New Issue
Block a user