X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6ef496f17a3020a24c4321befa6a060e1fad16dc..6baeb520da4e49c3bbcb9a4af3fe8af143d9fca3:/package/firewall/files/lib/fw.sh?ds=inline diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index a8a791149..0814ffc31 100644 --- a/package/firewall/files/lib/fw.sh +++ b/package/firewall/files/lib/fw.sh @@ -74,7 +74,8 @@ fw__exec() { # { } fw__rc $(($? & 1)) return fi - fw__rc 0 + [ "$app" != ip6tables ] || [ "$tab" != nat ] + fw__rc $? } fw__err() { @@ -254,9 +255,12 @@ fw_get_subnet4() { [ "${_name#!}" != "$_name" ] && \ export -n -- "$_var=! $_flag $_ipaddr/${_netmask:-255.255.255.255}" || \ export -n -- "$_var=$_flag $_ipaddr/${_netmask:-255.255.255.255}" + return 0 ;; - *) export -n -- "$_var=" ;; esac + + export -n -- "$_var=" + return 1 } fw_check_icmptype4() {