mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
update htbt script
This commit is contained in:
parent
6f6d495a19
commit
dd2945add1
1 changed files with 1 additions and 1 deletions
|
@ -3,5 +3,5 @@ ip=`ifconfig 2>&1|grep "inet addr"|grep -v "127"|awk '{print $2}'|awk -F ':' '{p
|
||||||
for ((;;)); do
|
for ((;;)); do
|
||||||
echo "heatbeat at `date`"
|
echo "heatbeat at `date`"
|
||||||
curl 'http://ossrs.net:8085/api/v1/servers' -H 'Content-Type: text/html' --data-binary "{\"ip\":\"${ip}\",\"device_id\":\"respberry-pi2\"}" && echo ""
|
curl 'http://ossrs.net:8085/api/v1/servers' -H 'Content-Type: text/html' --data-binary "{\"ip\":\"${ip}\",\"device_id\":\"respberry-pi2\"}" && echo ""
|
||||||
sleep 30
|
sleep 10
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue