fix: drop authentication for EPG endpoint, as XMLTV clients auto-fetch url-tvg without creds
This commit is contained in:
@@ -72,7 +72,7 @@ func main() {
|
|||||||
mux := http.NewServeMux()
|
mux := http.NewServeMux()
|
||||||
mux.HandleFunc("/healthz", healthz(refresher))
|
mux.HandleFunc("/healthz", healthz(refresher))
|
||||||
mux.HandleFunc("/playlist", basicAuth(cfg, servePlaylist(cfg, 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
|
mux.HandleFunc("/", basicAuth(cfg, servePlaylist(cfg, refresher))) // alias
|
||||||
|
|
||||||
srv := &http.Server{Addr: cfg.ListenAddr, Handler: mux}
|
srv := &http.Server{Addr: cfg.ListenAddr, Handler: mux}
|
||||||
|
|||||||
Reference in New Issue
Block a user