mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 01:53:27 +01:00
Fix comment regarding 'add_a_rule'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5010 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
f2eb6f71e4
commit
8abaecbc26
@ -1815,6 +1815,9 @@ add_a_rule() {
|
||||
case "$logtarget" in
|
||||
ACCEPT|DROP|REJECT|CONTINUE)
|
||||
if [ "$SECTION" != DONE ]; then
|
||||
#
|
||||
# This function is called from process_default_macro() after rules are DONE
|
||||
#
|
||||
if [ -z "$proto" -a -z "$cli" -a -z "$serv" -a -z "$servport" -a -z "$user" -a -z "$excludesource" -a -z "$excludedest" ] ; then
|
||||
error_message "WARNING -- Rule \"$rule\" is a POLICY"
|
||||
error_message " -- and should be moved to the policy file"
|
||||
|
@ -705,7 +705,7 @@ __EOF__
|
||||
if [ $addr = detect ]; then
|
||||
ensurenatchain $(dnat_chain $source)
|
||||
#
|
||||
# The 'for loops' begun below are completed in add_a_rule() whose declaration follows
|
||||
# The 'for loops' begun below are completed in add_a_rule() (in the compiler)
|
||||
#
|
||||
indent >&3 << __EOF__
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user