mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 12:40:19 +01:00
Actually append Config to Uplink Creation
This commit is contained in:
parent
229482fa3d
commit
b22a410a78
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue