mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 20:39:36 +03:00
Move from deprecated ioutil to os and io packages (#744)
This commit is contained in:
@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
@ -126,7 +125,7 @@ func getRegepxByFormat() string {
|
||||
}
|
||||
|
||||
func readConfDir(dirPath string) {
|
||||
confs, err := ioutil.ReadDir(dirPath)
|
||||
confs, err := os.ReadDir(dirPath)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user