2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

Fix call to minio.New()

The last parameter changed semantics from `insecure` to `secure`.
This commit is contained in:
Alexander Neumann 2016-06-08 21:33:18 +02:00
parent d66a98c2db
commit 902f619a06

View File

@ -27,7 +27,7 @@ type s3 struct {
func Open(cfg Config) (backend.Backend, error) { func Open(cfg Config) (backend.Backend, error) {
debug.Log("s3.Open", "open, config %#v", cfg) debug.Log("s3.Open", "open, config %#v", cfg)
client, err := minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, cfg.UseHTTP) client, err := minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, !cfg.UseHTTP)
if err != nil { if err != nil {
return nil, err return nil, err
} }