Skip to content

Commit

Permalink
let ssr plus can flush 500 severs at one-click
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Oct 23, 2018
1 parent c15e4e9 commit 4081ff0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/lean/luci-app-ssr-plus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for SSR Plus
LUCI_DEPENDS:=+shadowsocksr-libev-alt +ipset +ip-full +iptables-mod-tproxy +dnsmasq-full +coreutils +coreutils-base64 +bash +pdnsd-alt +wget
LUCI_PKGARCH:=all
PKG_VERSION:=1
PKG_RELEASE:=28
PKG_RELEASE:=29

include $(TOPDIR)/feeds/luci/luci.mk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ o = s:option(Button,"delete",translate("Delete all severs"))
o.inputstyle = "reset"
o.write = function()
luci.sys.call("nohup bash /usr/share/shadowsocksr/delservers.sh > /tmp/subupdate.log 2>&1 &")
luci.sys.call("sleep 3")
luci.sys.call("sleep 5")
luci.http.redirect(luci.dispatcher.build_url("admin", "services", "shadowsocksr", "servers"))
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

for((i=1;i<=200;i++));
for((i=1;i<=500;i++));
do
uci delete shadowsocksr.@servers[$1] >/dev/null 2>&1
done
Expand Down

0 comments on commit 4081ff0

Please sign in to comment.