aboutsummaryrefslogtreecommitdiff
path: root/weed/security/tls.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/security/tls.go')
-rw-r--r--weed/security/tls.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/security/tls.go b/weed/security/tls.go
index e20b32437..d5384fc51 100644
--- a/weed/security/tls.go
+++ b/weed/security/tls.go
@@ -7,7 +7,7 @@ import (
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/credentials/tls/certprovider/pemfile"
"google.golang.org/grpc/security/advancedtls"
- "io/ioutil"
+ "os"
"strings"
"time"
@@ -136,7 +136,7 @@ func LoadClientTLS(config *util.ViperProxy, component string) grpc.DialOption {
}
func LoadClientTLSHTTP(clientCertFile string) *tls.Config {
- clientCerts, err := ioutil.ReadFile(clientCertFile)
+ clientCerts, err := os.ReadFile(clientCertFile)
if err != nil {
glog.Fatal(err)
}