Skip to content

外部M3U中的udpxy单播源处理错误 #711

Description

@iseku

问题描述

如果外部M3U中包含了udpxy格式的单播源url ,例如 http://123.226.199.250:4002/rtp/239.253.254.77:8000
应该被解析为http单播源来创建service,但是现在却被当作本地组播源 rtp://239.253.254.77:8000 来处理了
从web服务传入的url没有问题,例如 http://192.168.0.1:5140/http/123.226.199.250:4002/rtp/239.253.254.77:8000

测试样例和日志

加载外部M3U内容:
#EXTINF:-1 tvg-name="CCTV1" group-title="央视频道", CCTV1
http://123.226.199.250:4002/rtp/239.253.254.77:8000

加载配置时日志显示:
2026/08/14 16:53:54 DEBUG [Worker 0] Creating service from M3U: 央视频道/CCTV1 -> 央视频道/CCTV1 rtp://239.253.254.77:8000
2026/08/14 16:53:54 DEBUG [Worker 0] Parsed RTP URL: mcast=239.253.254.77:8000
2026/08/14 16:53:54 DEBUG [Worker 0] Created RTP service from URL: rtp://239.253.254.77:8000
2026/08/14 16:53:54 DEBUG [Worker 0] Service created: 央视频道/CCTV1 (RTP) [external]

使用URL直接请求:
http://192.168.0.1:5140/http/123.226.199.250:4002/rtp/239.253.254.77:8000

连接日志
2026/08/14 17:01:34 INFO [Worker 0] New client 192.168.0.113:62778 requested URL: /http/123.226.199.250:4002/rtp/239.253.254.77:8000 (method: GET)
2026/08/14 17:01:34 DEBUG [Worker 0] Created HTTP proxy service: /http/123.226.199.250:4002/rtp/239.253.254.77:8000 -> http://123.226.199.250:4002/rtp/239.253.254.77:8000

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions