diff --git a/docs/2-usage/5-authentication.md b/docs/2-usage/5-authentication.md index 6f893b90..4970c952 100644 --- a/docs/2-usage/5-authentication.md +++ b/docs/2-usage/5-authentication.md @@ -2,7 +2,7 @@ ## Overview -MediaMTX can be configured to ask clients for credentials, either in the form of a username/password or a string-based token. These credentials are then validated through a chosen method. +MediaMTX can be configured to ask clients for credentials, either in the form of username/password or a string-based token. These credentials are then validated through a chosen method. ## Credential validation @@ -38,7 +38,7 @@ authInternalUsers: path: ``` -Only clients that provide username and passwords will be able to perform a certain action. +Only clients that provide a valid username and password will be able to perform a certain action. If storing plain credentials in the configuration file is a security problem, username and passwords can be stored as hashed strings. The Argon2 and SHA256 hashing algorithms are supported. To use Argon2, the string must be hashed using Argon2id (recommended) or Argon2i: diff --git a/internal/recordstore/segment.go b/internal/recordstore/segment.go index e4972069..bc686649 100644 --- a/internal/recordstore/segment.go +++ b/internal/recordstore/segment.go @@ -148,7 +148,7 @@ func FindSegments( var pa Path ok := pa.Decode(recordPath, fpath) - // gather all segments that starts before the end of the playback + // gather all segments that start before the end of the playback if ok && (end == nil || !end.Before(pa.Start)) { segments = append(segments, &Segment{ Fpath: fpath,