projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[package] firewall: add option to disable NAT reflection
[openwrt.git]
/
package
/
firewall
/
files
/
lib
/
config.sh
diff --git
a/package/firewall/files/lib/config.sh
b/package/firewall/files/lib/config.sh
index
1c5e030
..
996cef8
100644
(file)
--- a/
package/firewall/files/lib/config.sh
+++ b/
package/firewall/files/lib/config.sh
@@
-87,8
+87,8
@@
config_get_ipaddr() {
local vers=
case "$addr" in
- *
.*) vers=4
;;
- *
:*) vers=6
;;
+ *
:*) vers=6; mask="${mask:-128}"
;;
+ *
.*) vers=4; mask="${mask:-32}"
;;
esac
export ${NO_EXPORT:+-n} -- "${varn}=${addr}"
This page took
0.02239 seconds
and
4
git commands to generate.