Skip to content

Commit 5144131

Browse files
author
Toyo
authored
Add files via upload
1 parent 09e0778 commit 5144131

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ssr_mujson_clear.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export PATH
55
#=================================================
66
# System Required: CentOS 6+/Debian 7+/Ubuntu 14.04+
77
# Description: ShadowsocksR mujson mode traffic clear script
8-
# Version: 1.0.0
8+
# Version: 1.0.1
99
# Author: Toyo
1010
#=================================================
1111
SSR_file="/usr/local/shadowsocksr"
@@ -16,9 +16,9 @@ check_ssr(){
1616
}
1717
scan_port(){
1818
cd "${SSR_file}"
19-
port_all=$(python "mujson_mgr.py" -l|sed "1d")
19+
port_all=$(python "mujson_mgr.py" -l)
2020
[[ -z ${port_all} ]] && echo -e "${Error} 没有发现任何端口(用户) !" && exit 1
21-
port_num=$(echo -e "${port_all}"|wc -l)
21+
port_num=$(echo "${port_all}"|wc -l)
2222
[[ ${port_num} = 0 ]] && echo -e "${Error} 没有发现任何端口(用户) !" && exit 1
2323
}
2424
clear_traffic(){

0 commit comments

Comments
 (0)