Add files via upload

This commit is contained in:
hy5528
2024-02-27 12:05:37 +08:00
committed by GitHub
parent 25c0636203
commit 341b69d666
+14
View File
@@ -0,0 +1,14 @@
<?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);
?>