udp2raw-tunnel: update files/udp2raw-daemon.iptables.initd

This commit is contained in:
Yury Martynov 2019-09-09 18:11:51 +03:00
parent f868657e6b
commit bfeb0de2e8
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E

View file

@ -25,8 +25,11 @@ retry="${UDP2RAW_TERMTIMEOUT}"
extra_commands="checkconfig"
depend() {
need iptables
before net
if ! [ -z ${UDP2RAW_IPT_DISABLED} ]; then
need iptables
fi
}
_gen_ipt_rule() {
@ -39,7 +42,7 @@ _update_ipt_rule() {
local rule command=${1}
local ipt_binary=$(which iptables)
if [[ "${UDP2RAW_IPT_DISABLED}" == "1" ]]; then
if ! [ -z ${UDP2RAW_IPT_DISABLED} ]; then
return
fi