Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ea880fb5
Commit
ea880fb5
authored
Nov 27, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter: argument is never false
parent
afad392e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
filter.inc
src/etc/inc/filter.inc
+3
-6
No files found.
src/etc/inc/filter.inc
View file @
ea880fb5
...
@@ -156,8 +156,7 @@ function filter_delete_states_for_down_gateways() {
...
@@ -156,8 +156,7 @@ function filter_delete_states_for_down_gateways() {
}
}
}
}
/* reload filter sync */
function
filter_configure_sync
()
function
filter_configure_sync
(
$delete_states_if_needed
=
true
)
{
{
global
$config
,
$g
,
$after_filter_configure_run
;
global
$config
,
$g
,
$after_filter_configure_run
;
global
$time_based_rules
,
$filterdns
,
$aliases
;
global
$time_based_rules
,
$filterdns
,
$aliases
;
...
@@ -375,10 +374,8 @@ function filter_configure_sync($delete_states_if_needed = true)
...
@@ -375,10 +374,8 @@ function filter_configure_sync($delete_states_if_needed = true)
echo
"."
;
echo
"."
;
}
}
if
(
$delete_states_if_needed
)
{
update_filter_reload_status
(
gettext
(
"Processing down interface states"
));
update_filter_reload_status
(
gettext
(
"Processing down interface states"
));
filter_delete_states_for_down_gateways
();
filter_delete_states_for_down_gateways
();
}
update_filter_reload_status
(
gettext
(
"Done"
));
update_filter_reload_status
(
gettext
(
"Done"
));
if
(
file_exists
(
"/var/run/booting"
))
{
if
(
file_exists
(
"/var/run/booting"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment