ソースを参照

Actually append Config to Uplink Creation

tags/v1.2.0
stefanbenten 4年前
コミット
b22a410a78
1個のファイルの変更1行の追加2行の削除
  1. +1
    -2
      server/storage.go

+ 1
- 2
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)
}


読み込み中…
キャンセル
保存