|
|
@@ -155,6 +155,14 @@ if nixio.fs.access("/usr/bin/kcptun-client") then
|
|
|
end
|
|
|
end
|
|
|
|
|
|
+s = m:field(Button, "Restart", translate("Restart ShadowSocksR Plus+"))
|
|
|
+s.inputtitle = translate("Restart Service")
|
|
|
+s.inputstyle = "reload"
|
|
|
+s.write = function()
|
|
|
+ luci.sys.call("/etc/init.d/shadowsocksr restart >/dev/null 2>&1 &")
|
|
|
+ luci.http.redirect(luci.dispatcher.build_url("admin", "services", "shadowsocksr", "client"))
|
|
|
+end
|
|
|
+
|
|
|
s = m:field(DummyValue, "google", translate("Google Connectivity"))
|
|
|
s.value = translate("No Check")
|
|
|
s.template = "shadowsocksr/check"
|
|
|
@@ -181,10 +189,10 @@ if uci:get_first("shadowsocksr", 'global', 'apple_optimization', '0') ~= '0' the
|
|
|
end
|
|
|
|
|
|
if uci:get_first("shadowsocksr", 'global', 'netflix_enable', '0') ~= '0' then
|
|
|
-s = m:field(DummyValue, "nfip_data", translate("Netflix IP Data"))
|
|
|
-s.rawhtml = true
|
|
|
-s.template = "shadowsocksr/refresh"
|
|
|
-s.value = nfip_count .. " " .. translate("Records")
|
|
|
+ s = m:field(DummyValue, "nfip_data", translate("Netflix IP Data"))
|
|
|
+ s.rawhtml = true
|
|
|
+ s.template = "shadowsocksr/refresh"
|
|
|
+ s.value = nfip_count .. " " .. translate("Records")
|
|
|
end
|
|
|
|
|
|
if uci:get_first("shadowsocksr", 'global', 'adblock', '0') == '1' then
|