mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix IPv6 with v2ray
This commit is contained in:
		
							parent
							
								
									dfe2eea5af
								
							
						
					
					
						commit
						f5b2e0f0e1
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -37,6 +37,8 @@ set_ipv6_state() {
 | 
			
		|||
			delete dhcp.lan.ra_default
 | 
			
		||||
			delete dhcp.lan.ra_management
 | 
			
		||||
			delete dhcp.lan.ra_preference
 | 
			
		||||
			del_list v2ray.main.inbounds="omr6"
 | 
			
		||||
			commit v2ray
 | 
			
		||||
		EOF
 | 
			
		||||
		config_load shadowsocks-libev
 | 
			
		||||
		config_foreach set_shadowsocks_address ss_redir "0.0.0.0"
 | 
			
		||||
| 
						 | 
				
			
			@ -54,6 +56,13 @@ set_ipv6_state() {
 | 
			
		|||
			set network.lan.ipv6="1"
 | 
			
		||||
			set network.lan.delegate="0"
 | 
			
		||||
		EOF
 | 
			
		||||
		if [ "$(uci -q get v2ray.main.inbounds | grep omr6)" = "" ]; then
 | 
			
		||||
			uci -q batch <<-EOF >/dev/null
 | 
			
		||||
				add_list v2ray.main.inbounds="omr6"
 | 
			
		||||
				commit v2ray
 | 
			
		||||
			EOF
 | 
			
		||||
		fi
 | 
			
		||||
		
 | 
			
		||||
		if [ "$(network.lan.ip6assign)" = "" ]; then
 | 
			
		||||
			uci -q set network.lan.ip6assign='60'
 | 
			
		||||
		fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue