diff options
| author | Yoni Nakache <45972051+LazyDBA247-Anyvision@users.noreply.github.com> | 2021-01-13 22:32:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-13 22:32:23 +0200 |
| commit | d1959de03894fb77753be622f18ec70e0a45eb43 (patch) | |
| tree | 31bc579b3c780dc6ce3e412b892da246fefa6d1a /weed/security/tls.go | |
| parent | 95982e0856dcde5cd7542532367c436503d39a7a (diff) | |
| parent | 3fb2ed90932f608b3fd8e9c29d32663b7402e8eb (diff) | |
| download | seaweedfs-d1959de03894fb77753be622f18ec70e0a45eb43.tar.xz seaweedfs-d1959de03894fb77753be622f18ec70e0a45eb43.zip | |
Merge branch 'master' into master
Diffstat (limited to 'weed/security/tls.go')
| -rw-r--r-- | weed/security/tls.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/weed/security/tls.go b/weed/security/tls.go index 72363768f..b4bf84e2d 100644 --- a/weed/security/tls.go +++ b/weed/security/tls.go @@ -3,17 +3,16 @@ package security import ( "crypto/tls" "crypto/x509" + "github.com/chrislusf/seaweedfs/weed/util" "io/ioutil" - "github.com/spf13/viper" - "google.golang.org/grpc" "google.golang.org/grpc/credentials" "github.com/chrislusf/seaweedfs/weed/glog" ) -func LoadServerTLS(config *viper.Viper, component string) grpc.ServerOption { +func LoadServerTLS(config *util.ViperProxy, component string) grpc.ServerOption { if config == nil { return nil } @@ -40,7 +39,7 @@ func LoadServerTLS(config *viper.Viper, component string) grpc.ServerOption { return grpc.Creds(ta) } -func LoadClientTLS(config *viper.Viper, component string) grpc.DialOption { +func LoadClientTLS(config *util.ViperProxy, component string) grpc.DialOption { if config == nil { return grpc.WithInsecure() } |
