X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fwatch.sh;h=1ba0954192943b07529c80d842b9670b3639cdf5;hb=5b144c02682c833344dbe71c55b7dc53f63ef45d;hp=596ca32ad43c96bcd7d4c26410d2369f9b57ad34;hpb=b3db7c81d8a072f32454612696c367dbcd301529;p=serve0 diff --git a/actions/watch.sh b/actions/watch.sh index 596ca32..1ba0954 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -41,11 +41,9 @@ fi case "$_COOKIE[watch]" in raspi) - #rpiaddr="http://atoemchen.helmchyn.no-ip.biz/?action=watch" - #redirect "${rpiaddr}&url=$(urlsafe "http://${HTTP_HOST}/${videourl}")&return=$(urlsafe "http://${HTTP_HOST}/${_POST[page]}")" - ncat atoemchen 80 >&- <<-EOF + ncat "$RHOST" "$RPORT" >&- <<-EOF GET /?action=watch&url=$(urlsafe "http://${HTTP_HOST}/${videourl}") HTTP/1.1$(printf \\r) - Host: atoemchen$(printf \\r) + Host: ${RHOST}$(printf \\r) $(printf \\r) EOF redirect "?p=playctl&${watch_link}w=$(urlsafe "${_POST[page]}#${_GET[i]}")"