mirror of
https://github.com/aler9/gortsplib
synced 2025-10-08 00:20:05 +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.
|
// 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 {
|
func NewAuthServer(user string, pass string, methods []AuthMethod) *AuthServer {
|
||||||
if methods == nil {
|
if methods == nil {
|
||||||
methods = []AuthMethod{Basic, Digest}
|
methods = []AuthMethod{Basic, Digest}
|
||||||
|
Reference in New Issue
Block a user