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"
 | 
			
		||||
		return 1
 | 
			
		||||
	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"
 | 
			
		||||
		return 1
 | 
			
		||||
	fi
 | 
			
		||||
| 
						 | 
				
			
			@ -166,7 +166,7 @@ v2r_rules_iptchains_init() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
			*mangle
 | 
			
		||||
			-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"
 | 
			
		||||
		return 1
 | 
			
		||||
	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"
 | 
			
		||||
		return 1
 | 
			
		||||
	fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue