From b22a410a78d79de1a6d4603df41cc1d93859097a Mon Sep 17 00:00:00 2001 From: stefanbenten Date: Mon, 28 Oct 2019 22:44:46 +0100 Subject: [PATCH] Actually append Config to Uplink Creation --- server/storage.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/storage.go b/server/storage.go index 7890f45..1b163f5 100644 --- a/server/storage.go +++ b/server/storage.go @@ -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) }