forked from extern/shorewall_code
Allow 'main' in the PROVIDER column in route_rules
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3877 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
04e8c78605
commit
00bbc4c4ab
@ -1298,7 +1298,7 @@ __EOF__
|
|||||||
{
|
{
|
||||||
local p n
|
local p n
|
||||||
|
|
||||||
for p in $PROVIDERS; do
|
for p in $PROVIDERS main; do
|
||||||
[ "$p" = "$1" ] && return 0
|
[ "$p" = "$1" ] && return 0
|
||||||
eval n=\$${p}_number}
|
eval n=\$${p}_number}
|
||||||
[ "$n" = "$1" ] && return 0
|
[ "$n" = "$1" ] && return 0
|
||||||
@ -1397,6 +1397,8 @@ __EOF__
|
|||||||
if [ -f $f ]; then
|
if [ -f $f ]; then
|
||||||
strip_file route_rules $f
|
strip_file route_rules $f
|
||||||
|
|
||||||
|
main_number=254
|
||||||
|
|
||||||
if [ -s $TMP_DIR/route_rules ]; then
|
if [ -s $TMP_DIR/route_rules ]; then
|
||||||
progress_message2 "$DOING $f..."
|
progress_message2 "$DOING $f..."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user