mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix omr-tracker with proxy settings
This commit is contained in:
		
							parent
							
								
									c208a2087a
								
							
						
					
					
						commit
						be8eafb85d
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -4,14 +4,14 @@ local m, s, o
 | 
			
		|||
 | 
			
		||||
m = Map("omr-tracker", translate("OMR-Tracker"))
 | 
			
		||||
 | 
			
		||||
s = m:section(TypedSection, "shadowsocks", translate("ShadowSocks tracker Settings"), translate("Detect if ShadowSocks is down and stop traffic redirection over it."))
 | 
			
		||||
s = m:section(TypedSection, "proxy", translate("Proxy tracker Settings"), translate("Detect if Proxy is down and stop traffic redirection over it."))
 | 
			
		||||
s.anonymous   = true
 | 
			
		||||
s.addremove = false
 | 
			
		||||
 | 
			
		||||
local sdata = m:get('shadowsocks')
 | 
			
		||||
local sdata = m:get('proxy')
 | 
			
		||||
if not sdata then
 | 
			
		||||
	m:set('shadowsocks', nil, 'shadowsocks')
 | 
			
		||||
	m:set('shadowsocks', 'enabled', "1")
 | 
			
		||||
	m:set('proxy', nil, 'proxy')
 | 
			
		||||
	m:set('proxy', 'enabled', "1")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
o = s:option(Flag, "enabled", translate("Enable"), translate("When tracker is disabled, connection failover is also disabled"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue