projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: add md5sum of kernel
[openwrt.git]
/
package
/
firewall
/
files
/
lib
/
core_init.sh
diff --git
a/package/firewall/files/lib/core_init.sh
b/package/firewall/files/lib/core_init.sh
index
56e19b7
..
42124b3
100644
(file)
--- a/
package/firewall/files/lib/core_init.sh
+++ b/
package/firewall/files/lib/core_init.sh
@@
-245,9
+245,9
@@
fw_load_zone() {
if [ "$zone_masq" == 1 ]; then
local msrc mdst
for msrc in ${zone_masq_src:-0.0.0.0/0}; do
if [ "$zone_masq" == 1 ]; then
local msrc mdst
for msrc in ${zone_masq_src:-0.0.0.0/0}; do
-
[ "${msrc#!}" != "$msrc" ] && msrc="! -s ${msrc#!}" || msrc="-s
$msrc"
+
fw_get_negation msrc '-s' "
$msrc"
for mdst in ${zone_masq_dest:-0.0.0.0/0}; do
for mdst in ${zone_masq_dest:-0.0.0.0/0}; do
-
[ "${mdst#!}" != "$mdst" ] && mdst="! -d ${mdst#!}" || mdst="-d
$mdst"
+
fw_get_negation mdst '-d' "
$mdst"
fw add $mode n ${chain}_nat MASQUERADE $ { $msrc $mdst }
done
done
fw add $mode n ${chain}_nat MASQUERADE $ { $msrc $mdst }
done
done
@@
-271,8
+271,10
@@
fw_load_notrack_zone() {
fw_load_include() {
local name="$1"
fw_load_include() {
local name="$1"
- local path; config_get path ${name} path
- [ -e $path ] && . $path
+ local path
+ config_get path ${name} path
+
+ [ -e $path ] && ( . $path )
}
}
This page took
0.025873 seconds
and
4
git commands to generate.