mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix omr-tracker-ss
This commit is contained in:
		
							parent
							
								
									6201c7c82e
								
							
						
					
					
						commit
						5b85fd8473
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -47,7 +47,7 @@ while true; do | |||
| 			uci -q set openmptcprouter.omr.shadowsocks="up" | ||||
| 			uci -q commit openmptcprouter.omr | ||||
| 		} | ||||
| 		if [ ! /etc/init.d/shadowsocks-libev rules_exist ] && [ "$(uci -q get shadowsocks-libev.ss_rules.disabled)" != "1" ]; then | ||||
| 		if [ -z "$(iptables -t nat -L | grep ss_rules_forward)" ] && [ "$(uci -q get shadowsocks-libev.ss_rules.disabled)" != "1" ]; then | ||||
| 			log "Reload Shadowsocks rules" | ||||
| 			/etc/init.d/shadowsocks-libev rules_up 2> /dev/null | ||||
| 			get_ip | ||||
|  | @ -58,7 +58,7 @@ while true; do | |||
| 		last=$((last + 1 )) | ||||
| 		[ -z "$nocontact" ] && nocontact="$host" || nocontact="$nocontact, $host" | ||||
| 		[ "${last}" -ge "${retry}" ] && { | ||||
| 			if /etc/init.d/shadowsocks-libev rules_exist ; then | ||||
| 			if [ -n "$(iptables -t nat -L | grep ss_rules_forward)" ]; then | ||||
| 				log "Shadowsocks is down (can't contact ${nocontact})" | ||||
| 				uci -q set openmptcprouter.omr.shadowsocks="down" | ||||
| 				uci -q commit openmptcprouter.omr | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue