Skip to content

Commit

Permalink
fix:ping结果打印到logread
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzzzhy committed Dec 28, 2023
1 parent 638aab1 commit def23bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hi/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2746,7 +2746,7 @@ fi
cat >/tmp/net_ping_detected<<EOF
node_host={{.nodeHost}}
import_ip=\$(uci get wireguard.@peers[0].end_point|awk -F':' '{print \$1}')
oping -c25 -i 2 -w 2 -O /var/log/ping.log \$import_ip \$node_host 8.8.8.8 |grep 'timeout' |logger -t ping
oping -c25 -i 2 \$import_ip \$node_host 8.8.8.8 |grep 'timeout' |logger -t ping
EOF
host="{{.logUrl}}/$(uci get rtty.general.id)$(_sign)"
dmesg >/var/log/dmesg.log
Expand Down

0 comments on commit def23bc

Please sign in to comment.