forked from extern/shorewall_code
Fix obscure bug
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3348 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
35af148450
commit
686a9e9e9f
@ -7303,20 +7303,21 @@ setup_masq()
|
||||
|
||||
source="${networks:=0.0.0.0/0}"
|
||||
|
||||
detectinterface=
|
||||
|
||||
case $source in
|
||||
*.*.*|+*|!+*)
|
||||
;;
|
||||
*)
|
||||
if [ $COMMAND = compile ]; then
|
||||
detectinterface=$networks
|
||||
networks=
|
||||
else
|
||||
networks=$(get_routed_networks $networks)
|
||||
[ -z "$networks" ] && fatal_error "Unable to determine the routes through interface \"$source\""
|
||||
networks="$networks"
|
||||
detectinterface=
|
||||
fi
|
||||
;;
|
||||
*.*.*|+*|!+*)
|
||||
;;
|
||||
*)
|
||||
if [ $COMMAND = compile ]; then
|
||||
detectinterface=$networks
|
||||
networks=
|
||||
else
|
||||
networks=$(get_routed_networks $networks)
|
||||
[ -z "$networks" ] && fatal_error "Unable to determine the routes through interface \"$source\""
|
||||
networks="$networks"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
[ "x$addresses" = x- ] && addresses=
|
||||
|
Loading…
Reference in New Issue
Block a user