diff --git a/.github/diy/patches/ssr-plus.patch b/.github/diy/patches/ssr-plus.patch index 13436b75..246b5280 100644 --- a/.github/diy/patches/ssr-plus.patch +++ b/.github/diy/patches/ssr-plus.patch @@ -13,13 +13,12 @@ --- a/luci-app-ssr-plus/luasrc/controller/shadowsocksr.lua +++ b/luci-app-ssr-plus/luasrc/controller/shadowsocksr.lua @@ -28,11 +28,67 @@ function index() - entry({"admin", "services", "shadowsocksr", "reset"}, call("act_reset")) - entry({"admin", "services", "shadowsocksr", "restart"}, call("act_restart")) - entry({"admin", "services", "shadowsocksr", "delete"}, call("act_delete")) + entry({"admin", "services", "shadowsocksr", "remove_node"}, call("act_remove")) + entry({"admin", "services", "shadowsocksr", "save_node_order"}, call("act_save_order")).leaf = true + entry({"admin", "services", "shadowsocksr", "get_now_use_node"}, call("act_get_now_use_node")).leaf = true + entry({'admin', 'services', "shadowsocksr", 'ip'}, call('check_ip')) -- 获取ip情况 --[[Backup]] entry({"admin", "services", "shadowsocksr", "backup"}, call("create_backup")).leaf = true - end +function check_site(host, port)