Skip to content

Commit

Permalink
fix: 删除单播地址的多余参数。
Browse files Browse the repository at this point in the history
  • Loading branch information
super321 committed Jan 10, 2025
1 parent 181df8e commit f7fdd59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/iptv/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ func getChannelURLStr(channelURLs []url.URL, udpxyURL string, multicastFirst boo
if udpxyURL != "" && channelURL.Scheme == SCHEME_IGMP {
return url.JoinPath(udpxyURL, fmt.Sprintf("/rtp/%s", channelURL.Host))
} else {
// 删除单播地址的多余参数
channelURL.RawQuery = ""
return channelURL.String(), nil
}
}

0 comments on commit f7fdd59

Please sign in to comment.