mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix when domains used instead of ip
This commit is contained in:
		
							parent
							
								
									2527f33a94
								
							
						
					
					
						commit
						41bcf0f108
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -240,8 +240,8 @@ while true; do
 | 
			
		|||
						config_foreach _ping_server server $OMR_TRACKER_DEVICE
 | 
			
		||||
					fi
 | 
			
		||||
					if [ "$serverip_ping" = false ] && [ -n "$OMR_TRACKER_HOST" ]; then
 | 
			
		||||
						OMR_TRACKER_HOST=$(resolveip -4 $OMR_TRACKER_HOST | tr -d "\n")
 | 
			
		||||
						if [ "$(uci -q get network.$OMR_TRACKER_INTERFACE.proto)" = "3g" ] || [ "$(uci -q get network.$OMR_TRACKER_INTERFACE.proto)" = "qmi" ] || [ "$(uci -q get network.$OMR_TRACKER_INTERFACE.proto)" = "ncm" ]; then
 | 
			
		||||
							OMR_TRACKER_HOST=$(resolveip -4 $OMR_TRACKER_HOST | tr -d "\n")
 | 
			
		||||
							# Check if route is not used
 | 
			
		||||
							while ! ip route add $OMR_TRACKER_HOST via $OMR_TRACKER_DEVICE_GATEWAY dev $OMR_TRACKER_DEVICE src $OMR_TRACKER_DEVICE_IP > /dev/null 2>&1
 | 
			
		||||
							do
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue