SRS 6.0-b0 源码 + danmaku 后端(排除 objs/3rdparty/测试媒体)
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#/bin/bash
|
||||
for ((;;)); do
|
||||
ip=`ifconfig 2>&1|grep "inet addr"|grep -v "127"|awk '{print $2}'|awk -F ':' '{print $2}'`
|
||||
echo "heatbeat at `date`, ip is ${ip}"
|
||||
curl 'http://ossrs.net:8085/api/v1/servers' -H 'Content-Type: text/html' --data-binary "{\"ip\":\"${ip}\",\"device_id\":\"respberry-pi2\"}" && echo ""
|
||||
sleep 10
|
||||
done
|
||||
Reference in New Issue
Block a user