mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
dnsmasq: isset() vs. !empty()
PR: https://twitter.com/eblot/status/1027811926452183041
This commit is contained in:
parent
1489973eac
commit
2fd042ebf7
@ -117,7 +117,7 @@ function dnsmasq_configure_do($verbose = false)
|
||||
$args .= " --port={$config['dnsmasq']['port']} ";
|
||||
}
|
||||
|
||||
if (isset($config['dnsmasq']['interface'])) {
|
||||
if (!empty($config['dnsmasq']['interface'])) {
|
||||
$interfaces = explode(',', $config['dnsmasq']['interface']);
|
||||
$interfaces[] = 'lo0';
|
||||
$addresses = array();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user