aboutsummaryrefslogtreecommitdiff
path: root/weed/security/tls.go
diff options
context:
space:
mode:
authorZachary Walters <zachary.christopher.walters@gmail.com>2023-02-21 21:47:33 -0600
committerGitHub <noreply@github.com>2023-02-21 19:47:33 -0800
commitef2f741823bdb8cc9ebefb45183612a9cf630d5e (patch)
tree72c4d6fbf38b85bff2edf669f880828de43cc98f /weed/security/tls.go
parent2c4dbaedf2d1703b32f81adefec796b0a78704d6 (diff)
downloadseaweedfs-ef2f741823bdb8cc9ebefb45183612a9cf630d5e.tar.xz
seaweedfs-ef2f741823bdb8cc9ebefb45183612a9cf630d5e.zip
Updated the deprecated ioutil dependency (#4239)
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)
}