From 12f20458e7f6fc3992eed1faee0582f4e2b03e45 Mon Sep 17 00:00:00 2001 From: Kevin Yang Date: Sun, 22 Mar 2020 10:18:18 +0800 Subject: [PATCH] Update ssr-switch (#3908) Co-authored-by: KevinZjYang --- package/lean/luci-app-ssr-plus/root/usr/bin/ssr-switch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-switch b/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-switch index b9cdd54aa..6d3fa6dda 100755 --- a/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-switch +++ b/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-switch @@ -134,12 +134,14 @@ start() { CURRENT_SERVER=$DEFAULT_SERVER switch_proxy $CURRENT_SERVER echo "$(date "+%Y-%m-%d %H:%M:%S") switch to default ["$(uci_get_by_name $CURRENT_SERVER server)"] proxy!" >>/tmp/ssrplus.log - continue else echo "$(date "+%Y-%m-%d %H:%M:%S") Main server is NOT avilable.Continue using current server." >>/tmp/ssrplus.log fi + else + echo "$(date "+%Y-%m-%d %H:%M:%S") The current server is the default server." >>/tmp/ssrplus.log fi #判断当前代理是否正常 + echo "$(date "+%Y-%m-%d %H:%M:%S") Start checking if the current server is available." >>/tmp/ssrplus.log check_proxy current_ret=$? if [ "$current_ret" == "1" ]; then