mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
udp2raw-tunnel: update files/udp2raw-daemon.iptables.initd
This commit is contained in:
parent
f868657e6b
commit
bfeb0de2e8
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue