From 7a9b33706aa934124767de79eeecf7faa7561c85 Mon Sep 17 00:00:00 2001 From: guangwu Date: Thu, 31 Aug 2023 19:32:16 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil (#329) --- server/internal/utils/ip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/internal/utils/ip.go b/server/internal/utils/ip.go index 8bde7b0e..ae21211b 100644 --- a/server/internal/utils/ip.go +++ b/server/internal/utils/ip.go @@ -2,7 +2,7 @@ package utils import ( "bytes" - "io/ioutil" + "io" "net" "net/http" "time" @@ -31,7 +31,7 @@ func GetIP(serverUrl string) (string, error) { } defer rsp.Body.Close() - buf, err := ioutil.ReadAll(rsp.Body) + buf, err := io.ReadAll(rsp.Body) if err != nil { return "", err }