소스 검색

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)
}


불러오는 중...
취소
저장