Update and rename toup.php to 1.txt

This commit is contained in:
hy5528
2024-03-01 17:37:44 +08:00
committed by GitHub
parent b4dbe3d150
commit ad568b08ab
2 changed files with 1 additions and 14 deletions
+1
View File
@@ -0,0 +1 @@
https://agit.ai/yahsna/tvbox/src/branch/master/tv.txt
-14
View File
@@ -1,14 +0,0 @@
<?php
$id=isset($_GET['id'])?$_GET['id']:'cctv1';
$hostname = 'liveali-tpgq.cctv.cn';
// 获取域名的 IPv4 地址
$ip = gethostbyname($hostname);
// 构建 URL
$url = "http://{$ip}/liveali-tpgq.cctv.cn/live/" . $id .".m3u8";
header('location:' . $url);
?>