Simple webDAV auth implementation ()

This commit is contained in:
Antonio Navarro Perez 2021-10-11 18:50:18 +02:00 committed by GitHub
parent f6e155f07e
commit 02842b1917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 4 deletions
cmd/distribyted

View file

@ -161,7 +161,7 @@ func load(configPath string, port, webDAVPort int, fuseAllowOther bool) error {
return
}
if err := webdav.NewWebDAVServer(cfs, port); err != nil {
if err := webdav.NewWebDAVServer(cfs, port, conf.WebDAV.User, conf.WebDAV.Pass); err != nil {
log.Error().Err(err).Msg("error starting webDAV")
}
}