mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
update to master
This commit is contained in:
@@ -64,6 +64,7 @@ func BasicAuth(accounts gin.Accounts) gin.HandlerFunc {
|
||||
user, found := pairs.searchCredential(c.Request.Header.Get("Authorization"))
|
||||
if !found {
|
||||
if strings.HasPrefix(c.FullPath(), "/stream") ||
|
||||
strings.HasPrefix(c.FullPath(), "/play") ||
|
||||
(strings.HasPrefix(c.FullPath(), "/playlist") && c.FullPath() != "/playlistall/all.m3u") {
|
||||
c.Set("not_auth", true)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user