mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add wait to v2ray rules
This commit is contained in:
parent
79a56da436
commit
05cfb033a6
2 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ v2r_rules_parse_args() {
|
||||||
__errmsg "Requires at least -l or -L option"
|
__errmsg "Requires at least -l or -L option"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ -n "$o_dst_forward_recentrst" ] && ! iptables -m recent -h >/dev/null; then
|
if [ -n "$o_dst_forward_recentrst" ] && ! iptables -w -m recent -h >/dev/null; then
|
||||||
__errmsg "Please install iptables-mod-conntrack-extra with opkg"
|
__errmsg "Please install iptables-mod-conntrack-extra with opkg"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@ -166,7 +166,7 @@ v2r_rules_iptchains_init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
v2r_rules_iptchains_init_mark() {
|
v2r_rules_iptchains_init_mark() {
|
||||||
if [ "$(iptables -t mangle -L PREROUTING | grep ss_rules_dst_bypass_all)" = "" ]; then
|
if [ "$(iptables -w -t mangle -L PREROUTING | grep ss_rules_dst_bypass_all)" = "" ]; then
|
||||||
iptables-restore -w --noflush <<-EOF
|
iptables-restore -w --noflush <<-EOF
|
||||||
*mangle
|
*mangle
|
||||||
-A PREROUTING -m set --match-set ss_rules_dst_bypass_all dst -j MARK --set-mark 0x539
|
-A PREROUTING -m set --match-set ss_rules_dst_bypass_all dst -j MARK --set-mark 0x539
|
||||||
|
|
|
@ -95,7 +95,7 @@ v2ray_rules6_parse_args() {
|
||||||
__errmsg "Requires at least -l or -L option"
|
__errmsg "Requires at least -l or -L option"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ -n "$o_dst_forward_recentrst" ] && ! ip6tables -m recent -h >/dev/null; then
|
if [ -n "$o_dst_forward_recentrst" ] && ! ip6tables -w -m recent -h >/dev/null; then
|
||||||
__errmsg "Please install ip6tables-mod-conntrack-extra with opkg"
|
__errmsg "Please install ip6tables-mod-conntrack-extra with opkg"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue