remove refs to deprecated io/ioutil

This commit is contained in:
nikk gitanes
2023-07-10 03:14:53 +03:00
parent 4c41f7ddcc
commit 1d875b57b2
8 changed files with 18 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ package utils
import (
"bufio"
"io/ioutil"
"os"
"path/filepath"
"strings"
@@ -12,7 +12,7 @@ import (
)
func ReadBlockedIP() (ranger iplist.Ranger, err error) {
buf, err := ioutil.ReadFile(filepath.Join(settings.Path, "blocklist"))
buf, err := os.ReadFile(filepath.Join(settings.Path, "blocklist"))
if err != nil {
return nil, err
}