]> git.plutz.net Git - serve0/commitdiff
use HTT_HOST in coop redirect
authorpaul <paul@plutz.net>
Mon, 28 Nov 2016 20:50:57 +0000 (20:50 +0000)
committerpaul <paul@plutz.net>
Mon, 28 Nov 2016 20:50:57 +0000 (20:50 +0000)
svn path=/trunk/; revision=162

actions/watch.sh

index 0005d5bf2b2f86f939942caa6857e14975e82d20..cfa543723f289e1d1f6fe0a1ef29c36a0e10fbe8 100755 (executable)
@@ -40,7 +40,7 @@ fi
 case "$_COOKIE[watch]" in
   raspi)
     rpiaddr="http://atoemchen.helmchyn.no-ip.biz/?action=watch&url="
-    redirect "${rpiaddr}$(urlsafe "http://jupiter:8000/${videourl}")"
+    redirect "${rpiaddr}$(urlsafe "http://${HTTP_HOST}/${videourl}")"
   ;;
   480p)
     [ $height -gt 480 ] && redirect "?action=transcode&i=${linkinfo}&t=480" \