fix: drop authentication for EPG endpoint, as XMLTV clients auto-fetch url-tvg without creds
This commit is contained in:
1 parent
1e8a4e7251
commit
9eaabdae9a
1 file changed
+1
-1
@@ -72,7 +72,7 @@ func main() {
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/healthz", healthz(refresher))
|
||||
mux.HandleFunc("/playlist", basicAuth(cfg, servePlaylist(cfg, refresher)))
|
||||
mux.HandleFunc("/epg", basicAuth(cfg, serveEPG(cfg, refresher)))
|
||||
mux.HandleFunc("/epg", serveEPG(cfg, refresher)) // unauthenticated — XMLTV clients auto-fetch url-tvg without creds
|
||||
mux.HandleFunc("/", basicAuth(cfg, servePlaylist(cfg, refresher))) // alias
|
||||
|
||||
srv := &http.Server{Addr: cfg.ListenAddr, Handler: mux}
|
||||
|
||||
Reference in new issue
Block a user