Skip to content

Commit

Permalink
fixed:vmess的存活判断
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejun committed Nov 17, 2024
1 parent 7e59a27 commit 3280e88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ checknezhaAgentAlive() {
checkvmessAlive() {
local c=0
if ps aux | grep web.js | grep -v "grep" >/dev/null; then
((c + 1))
((c++))
fi

if ps aux | grep cloud | grep -v "grep" >/dev/null; then
((c + 1))
((c++))
fi

if [ $c -eq 2 ]; then
Expand Down Expand Up @@ -70,11 +70,11 @@ stopProc() {
checkSingboxAlive() {
local c=0
if ps aux | grep serv00sb | grep -v "grep" >/dev/null; then
((c + 1))
((c++))
fi

if ps aux | grep cloudflare | grep -v "grep" >/dev/null; then
((c + 1))
((c++))
fi

if [ $c -eq 2 ]; then
Expand Down

0 comments on commit 3280e88

Please sign in to comment.