SSR 客户端下载
+-
+
- win电脑端 +
- 安卓端ssr +
- MAC端ssr +
- iOS端SsrConnectPro +
- linux端ssr + +
diff --git a/README.md b/README.md index af7f307..6edfa75 100644 --- a/README.md +++ b/README.md @@ -31,16 +31,16 @@ ShadowsocksR多用户管理脚本(基于官方mujson版本) ## 替换安装法 正在使用原地址下载的脚本又不想丢失数据? -`cd /usr/local/ && rm -rf SSR-Bash-Python && git clone https://github.com/ImAnyOne/SSR-Bash-Python.git && cp SSR-Bash-Python/ssr /usr/local/bin/ssr` +`cd /usr/local/ && rm -rf SSR-Bash-Python && git clone https://github.com/wbdy95/SSR-Bash-Python.git &&rm -f /usr/local/bin/ssr && cp SSR-Bash-Python/ssr /usr/local/bin/ssr &&chmod a+x /usr/local/bin/ssr` ## 安装 ## - wget -N --no-check-certificate https://raw.githubusercontent.com/ImAnyOne/SSR-Bash-Python/master/install.sh && bash install.sh + wget -N --no-check-certificate https://raw.githubusercontent.com/wbdy95/SSR-Bash-Python/master/install.sh && bash install.sh ## 卸载 ## - wget -N --no-check-certificate https://raw.githubusercontent.com/ImAnyOne/SSR-Bash-Python/master/uninstall.sh && bash uninstall.sh + wget -N --no-check-certificate https://raw.githubusercontent.com/wbdy95/SSR-Bash-Python/master/uninstall.sh && bash uninstall.sh ## 自检 ## - wget -N --no-check-certificate https://raw.githubusercontent.com/ImAnyOne/SSR-Bash-Python/master/self-check.sh && bash self-check.sh + wget -N --no-check-certificate https://raw.githubusercontent.com/wbdy95/SSR-Bash-Python/master/self-check.sh && bash self-check.sh ## 截图 ##  diff --git a/install.sh b/install.sh index 75d2ada..14490f6 100644 --- a/install.sh +++ b/install.sh @@ -60,8 +60,8 @@ fi #Install SSR and SSR-Bash cd /usr/local -git clone https://github.com/shadowsocksr/shadowsocksr.git -git clone https://github.com/${GH_REPO}.git +git clone https://github.com/wbdy95/shadowsocksr.git +git clone https://github.com/wbdy95/SSR-Bash-Python.git cd /usr/local/shadowsocksr bash initcfg.sh @@ -140,7 +140,7 @@ systemctl enable iptables.service fi #Install SSR-Bash Background -wget -N --no-check-certificate -O /usr/local/bin/ssr https://raw.githubusercontent.com/${GH_REPO}/master/ssr +wget -N --no-check-certificate -O /usr/local/bin/ssr https://raw.githubusercontent.com/wbdy95/SSR-Bash-Python/master/ssr chmod +x /usr/local/bin/ssr #Modify ShadowsocksR API diff --git a/www/cgi-bin/check_flow.py b/www/cgi-bin/check_flow.py index 0666415..227df3b 100755 --- a/www/cgi-bin/check_flow.py +++ b/www/cgi-bin/check_flow.py @@ -21,17 +21,20 @@ if(str(x[u"port"]) == str(getport)): portexist=1 transfer_enable_int = int(x[u"transfer_enable"])/1024/1024; - d_int = int(x[u"d"])/1024/1024; + d_int = float(x[u"d"])/1024/1024; transfer_unit = "MB" d_unit = "MB" - #流量单位转换 if(transfer_enable_int > 1024): transfer_enable_int = transfer_enable_int/1024 transfer_unit = "GB" - if(transfer_enable_int > 1024): + if(d_int > 1024): d_int = d_int/1024 + d_int= ("%.3f" %d_int) d_unit = "GB" + if(d_int < 1024): + d_int= ("%.3f" %d_int) + d_unit = "MB" break if(portexist==0): @@ -123,8 +126,8 @@ ''' -print formhtml % (getport,d_int,d_unit,transfer_enable_int,transfer_unit) +print formhtml % (getport,d_int,d_unit,transfer_enable_int,transfer_unit) print footer f.close(); diff --git a/www/d.html b/www/d.html new file mode 100755 index 0000000..8958396 --- /dev/null +++ b/www/d.html @@ -0,0 +1,64 @@ + + + +
+ + + +