diff options
Diffstat (limited to 'utils/httpdns_utils.go')
| -rw-r--r-- | utils/httpdns_utils.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/httpdns_utils.go b/utils/httpdns_utils.go index 11c891d..ba8ce8d 100644 --- a/utils/httpdns_utils.go +++ b/utils/httpdns_utils.go @@ -5,7 +5,7 @@ import ( "crypto/des" "encoding/hex" "fmt" - "io/ioutil" + "io" "net/http" ) @@ -75,7 +75,7 @@ func SendTencentHttpdnsQuery() { } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { fmt.Printf("read content failed. Error: %s\n", err) return @@ -102,7 +102,7 @@ func SendAlicloudHttpdnsQurey() { } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { fmt.Printf("read content failed. Error: %s\n", err) return |
