"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
rcserver: avoid generating default credentials with htpasswd - fixes #4839
Kamuiefd3c6449b07
diff --git a/fs/rc/rcserver/rcserver.go b/fs/rc/rcserver/rcserver.goindex 0d246a2f6..125b36903 100644--- a/fs/rc/rcserver/rcserver.go+++ b/fs/rc/rcserver/rcserver.go@@ -97,11 +97,11 @@ func newServer(ctx context.Context, opt *rc.Options, mux *http.ServeMux) *Serverif opt.NoAuth {fs.Logf(nil, "It is recommended to use web gui with auth.")} else {- if opt.HTTPOptions.BasicUser == "" {+ if opt.HTTPOptions.BasicUser == "" && opt.HTTPOptions.HtPasswd == "" {opt.HTTPOptions.BasicUser = "gui"fs.Infof(nil, "No username specified. Using default username: %s \n", rcflags.Opt.HTTPOptions.BasicUser)}- if opt.HTTPOptions.BasicPass == "" {+ if opt.HTTPOptions.BasicPass == "" && opt.HTTPOptions.HtPasswd == "" {randomPass, err := random.Password(128)if err != nil {log.Fatalf("Failed to make password: %v", err)