forked from TrueCloudLab/restic
Fix call to minio.New()
The last parameter changed semantics from `insecure` to `secure`.
This commit is contained in:
parent
d66a98c2db
commit
902f619a06
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue