mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
firewall: like this better
This commit is contained in:
parent
6227bb9220
commit
9747e1f328
@ -315,7 +315,9 @@ function filter_configure_sync($verbose = false, $flush_states = false)
|
||||
flush();
|
||||
}
|
||||
|
||||
fixup_default_gateway();
|
||||
if (isset($config['system']['gw_switch_default'])) {
|
||||
fixup_default_gateway();
|
||||
}
|
||||
|
||||
$aliases = filter_generate_aliases();
|
||||
$aliases .= "\n# Plugins tables\n";
|
||||
|
||||
@ -866,12 +866,6 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
|
||||
|
||||
function fixup_default_gateway()
|
||||
{
|
||||
global $config;
|
||||
|
||||
if (!isset($config['system']['gw_switch_default'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$gateways_status = return_gateways_status(true);
|
||||
$gateways_arr = return_gateways_array();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user