fixed status error of v2ray, remain domain while using ws mode of v2ray

This commit is contained in:
leafnsand
2019-02-21 12:03:02 +08:00
parent 6f3c34ae9e
commit 7f3b70dbad
2 changed files with 13 additions and 5 deletions

View File

@@ -701,7 +701,13 @@ status() {
#if [ "$result" == '0' ] || [ "$http_status" != "200" ]; then
result2=$(iptables -t nat -S | grep SHADOWSOCK)
[ "$ssgena" == '1' ] && ssgflag=", 游戏节点: $ssgid($ssg_mode)"
if [ "$result1" -ge 3 ]; then
process_count=3
if [ "$proxy_type" == "v2ray" ]; then
process_count=2
fi
if [ "$result1" -ge $process_count ]; then
if [ -n "$result2" ]; then
status="运行节点: $id($ss_mode)$ssgflag|1"
else