mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Restart dnsmasq on change in case of dns rebinding changes
This commit is contained in:
parent
6733f0f90f
commit
a94e3f2016
@ -670,6 +670,7 @@ function services_dnsmasq_configure() {
|
||||
}
|
||||
|
||||
/* Allow DNS Rebind for forwarded domains */
|
||||
if(!isset($config['system']['webgui']['nodnsrebindcheck'])) {
|
||||
if (isset($config['dnsmasq']['domainoverrides']) && is_array($config['dnsmasq']['domainoverrides'])) {
|
||||
if(!isset($config['system']['webgui']['nodnsrebindcheck'])) {
|
||||
foreach($config['dnsmasq']['domainoverrides'] as $override) {
|
||||
|
||||
@ -138,7 +138,7 @@ outputJavaScriptFileInline("filebrowser/browser.js");
|
||||
"<?=$_SERVER['SCRIPT_NAME'];?>", {
|
||||
method: "post",
|
||||
postBody: "action=save&file=" + $("fbTarget").value +
|
||||
"&data=" + fileContent,
|
||||
"&data=" + escape(fileContent),
|
||||
onComplete: function(req) {
|
||||
var values = req.responseText.split("|");
|
||||
$("fileStatus").innerHTML = values[1];
|
||||
|
||||
@ -189,6 +189,8 @@ if ($_POST) {
|
||||
|
||||
conf_mount_rw();
|
||||
setup_serial_port();
|
||||
// Restart dnsmasq in case dns rebinding toggled
|
||||
services_dnsmasq_configure();
|
||||
conf_mount_ro();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user