Commit f3733699 authored by Franco Fichtner's avatar Franco Fichtner

dns: fix startup after refactor

Injecting `--' into the command line is rather funny as it stops
parsing of all following options and treats them as literals, which
dnsmasq then loudly complains about like `ain't nobody got time for
that'.
parent 67f45862
......@@ -1903,7 +1903,7 @@ function services_dnsmasq_configure()
$args .= " --domain-needed ";
}
if (isset($config['dnsmasq']['custom_options'])) {
if (isset($config['dnsmasq']['custom_options']) && !empty($config['dnsmasq']['custom_options'])) {
foreach (preg_split('/\s+/', $config['dnsmasq']['custom_options']) as $c) {
$args .= " " . escapeshellarg("--{$c}");
$p = explode('=', $c);
......
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