mirror of
https://github.com/ossrs/srs.git
synced 2025-11-24 11:54:21 +08:00
update htbt script
This commit is contained in:
@@ -3,5 +3,5 @@ ip=`ifconfig 2>&1|grep "inet addr"|grep -v "127"|awk '{print $2}'|awk -F ':' '{p
|
||||
for ((;;)); do
|
||||
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 ""
|
||||
sleep 30
|
||||
sleep 10
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user