Commit 76e5c8aa authored by Franco Fichtner's avatar Franco Fichtner

dns: fix unset of custom options in forwarder

(cherry picked from commit eeab940d)
parent becd282f
......@@ -105,8 +105,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
if (!empty($pconfig['custom_options'])) {
$config['dnsmasq']['custom_options'] = str_replace("\r\n", "\n", $pconfig['custom_options']);
} elseif (isset($pconfig['custom_options'])) {
unset($pconfig['custom_options']);
} elseif (isset($config['dnsmasq']['custom_options'])) {
unset($config['dnsmasq']['custom_options']);
}
write_config();
services_dnsmasq_configure();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment