mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Display Shadowsocks tracker configuration even if empty
This commit is contained in:
parent
60630143d5
commit
535b833527
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,13 @@ 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.anonymous = true
|
||||
s.addremove = false
|
||||
|
||||
local sdata = m:get('shadowsocks')
|
||||
if not sdata then
|
||||
m:set('shadowsocks', nil, 'shadowsocks')
|
||||
m:set('shadowsocks', 'enabled', "1")
|
||||
end
|
||||
|
||||
o = s:option(Flag, "enabled", translate("Enable"), translate("When tracker is disabled, connection failover is also disabled"))
|
||||
o.rmempty = false
|
||||
|
|
Loading…
Reference in a new issue