Actually append Config to Uplink Creation
This commit is contained in:
@ -582,12 +582,11 @@ func NewStorjStorage(endpoint, apiKey, bucket, encKey string, skipCA bool, logge
|
|||||||
ctx := context.TODO()
|
ctx := context.TODO()
|
||||||
|
|
||||||
config := uplink.Config{}
|
config := uplink.Config{}
|
||||||
|
|
||||||
if skipCA {
|
if skipCA {
|
||||||
config.Volatile.TLS.SkipPeerCAWhitelist = true
|
config.Volatile.TLS.SkipPeerCAWhitelist = true
|
||||||
}
|
}
|
||||||
|
|
||||||
instance.uplink, err = uplink.NewUplink(ctx, nil)
|
instance.uplink, err = uplink.NewUplink(ctx, &config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, uplinkFailure.Wrap(err)
|
return nil, uplinkFailure.Wrap(err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user