Actually append Config to Uplink Creation

This commit is contained in:
stefanbenten 2019-10-28 22:44:46 +01:00
parent 229482fa3d
commit b22a410a78

View file

@ -582,12 +582,11 @@ func NewStorjStorage(endpoint, apiKey, bucket, encKey string, skipCA bool, logge
ctx := context.TODO()
config := uplink.Config{}
if skipCA {
config.Volatile.TLS.SkipPeerCAWhitelist = true
}
instance.uplink, err = uplink.NewUplink(ctx, nil)
instance.uplink, err = uplink.NewUplink(ctx, &config)
if err != nil {
return nil, uplinkFailure.Wrap(err)
}