diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 65dc8fb..13963a8 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -334,7 +334,7 @@ function filter_configure_sync($delete_states_if_needed = true) { layer7_start_l7daemon(); if(!empty($filterdns)) { - @file_put_contents("{$g['varetc_path']}/filterdns.conf", implode("\n", $filterdns)); + @file_put_contents("{$g['varetc_path']}/filterdns.conf", implode("", $filterdns)); unset($filterdns); if (isvalidpid("{$g['varrun_path']}/filterdns.pid")) sigkillbypid("{$g['varrun_path']}/filterdns.pid", "HUP"); @@ -475,7 +475,7 @@ function filter_generate_nested_alias($name, $alias, &$aliasnesting, &$aliasaddr } else if(!isset($aliasaddrnesting[$address])) { if (!is_ipaddr($address) && !is_subnet($address) && !is_port($address) && is_hostname($address)) { if (!isset($filterdns["{$address}{$name}"])) - $filterdns["{$address}{$name}"] = "pf {$address} {$name}"; + $filterdns["{$address}{$name}"] = "pf {$address} {$name}\n"; continue; } $aliasaddrnesting[$address] = $address; |