Skip to content

Commit

Permalink
Update ppg.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkgo committed May 25, 2024
1 parent 31147a4 commit a6867cc
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions FILES/usr/bin/ppg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,23 +244,23 @@ load_clash() {
if ps | grep -v "grep" | grep "/etc/config/sing-box"; then
log "[OK] SNIFF OK." succ
else
if [ -f /www/sniffdns ]; then
# if [ -z "$dns_ip" ]; then
# dns_ip="1.0.0.1"
# fi
# if [ -z "$dns_port" ]; then
# dns_port="53"
# fi
# sed "s/dns_ip/$dns_ip/g" /etc/config/sing-box/sniff.json >/tmp/sniff.json
# sed -i "s/dns_port/$dns_port/g" /tmp/sniff.json
# if ps | grep -v "grep" | grep "d /etc/config/clash"; then
# /usr/bin/sing-box run -c /tmp/sniff.json >/dev/tty0 2>&1 &
# fi
# else
if ps | grep -v "grep" | grep "d /etc/config/clash"; then
/usr/bin/sing-box run -c /etc/config/sing-box/sniff.json >/dev/tty0 2>&1 &
fi
# if [ -f /www/sniffdns ]; then
# if [ -z "$dns_ip" ]; then
# dns_ip="1.0.0.1"
# fi
# if [ -z "$dns_port" ]; then
# dns_port="53"
# fi
# sed "s/dns_ip/$dns_ip/g" /etc/config/sing-box/sniff.json >/tmp/sniff.json
# sed -i "s/dns_port/$dns_port/g" /tmp/sniff.json
# if ps | grep -v "grep" | grep "d /etc/config/clash"; then
# /usr/bin/sing-box run -c /tmp/sniff.json >/dev/tty0 2>&1 &
# fi
# else
if ps | grep -v "grep" | grep "d /etc/config/clash"; then
/usr/bin/sing-box run -c /etc/config/sing-box/sniff.json >/dev/tty0 2>&1 &
fi
# fi
fi
fi
if [ ! -f /etc/watch ]; then
Expand Down

0 comments on commit a6867cc

Please sign in to comment.