diff options
| author | crobibero <cody@robibe.ro> | 2020-06-01 12:42:59 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-01 12:42:59 -0600 |
| commit | e30a85025f3d0f8b936827613239da7c2c2387c2 (patch) | |
| tree | 276bad469c5891aa7263b7e42a457b68c18e7683 /Emby.Server.Implementations/HttpServer/Security/AuthService.cs | |
| parent | b944b8f8c54963f61eee5eeb97cd1745ae42ac50 (diff) | |
Remove log spam when using legacy api
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthService.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/Security/AuthService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs index 58421aaf1..18bea59ad 100644 --- a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs +++ b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs @@ -146,11 +146,17 @@ namespace Emby.Server.Implementations.HttpServer.Security { return true; } + if (authAttribtues.AllowLocalOnly && request.IsLocal) { return true; } + if (authAttribtues.IgnoreLegacyAuth) + { + return true; + } + return false; } |
