Selaa lähdekoodia

Actually append Config to Uplink Creation

tags/v1.2.0
stefanbenten 4 vuotta sitten
vanhempi
commit
b22a410a78
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. +1
    -2
      server/storage.go

+ 1
- 2
server/storage.go Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna