mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
update docs
This commit is contained in:
2
auth.go
2
auth.go
@@ -38,7 +38,7 @@ type AuthServer struct {
|
||||
}
|
||||
|
||||
// NewAuthServer allocates an AuthServer.
|
||||
// If methods is nil, Basic and Digest authentications are used.
|
||||
// If methods is nil, the Basic and Digest methods are used.
|
||||
func NewAuthServer(user string, pass string, methods []AuthMethod) *AuthServer {
|
||||
if methods == nil {
|
||||
methods = []AuthMethod{Basic, Digest}
|
||||
|
Reference in New Issue
Block a user