mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix omr-mtu when no server ip defined
This commit is contained in:
		
							parent
							
								
									1675475d8e
								
							
						
					
					
						commit
						e3c143a3fd
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -313,6 +313,9 @@ if [ "$OMR_TRACKER_INTERFACE" = "glorytun" ] || [ "$OMR_TRACKER_INTERFACE" = "om
 | 
			
		|||
	# Set VPN MTU
 | 
			
		||||
	if [ -n "$OMR_TRACKER_LATENCY" ] && ([ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc)" = "" ] || [ $(($(date +"%s") - $(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc))) -gt 3600 ]); then
 | 
			
		||||
		local serverip=$(uci -q get shadowsocks-libev.sss0.server)
 | 
			
		||||
		if [ "$serverip" = "192.168.1.3" ] || [ "$serverip" = "127.0.0.1" ]; then
 | 
			
		||||
			serverip=""
 | 
			
		||||
		fi
 | 
			
		||||
		uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE="interface"
 | 
			
		||||
		uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.latency="$OMR_TRACKER_LATENCY"
 | 
			
		||||
		if [ -n "$(uci -q get network.$OMR_TRACKER_INTERFACE.mtu)" ]; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue