mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 03:19:36 +03:00
Move from deprecated ioutil to os and io packages (#744)
This commit is contained in:
@ -5,7 +5,7 @@ import (
|
||||
"crypto/rand"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
@ -102,7 +102,7 @@ func genTestBinaryPath() {
|
||||
testBinaryPathGen.Do(func() {
|
||||
var tempDir string
|
||||
common.Must(retry.Timed(5, 100).On(func() error {
|
||||
dir, err := ioutil.TempDir("", "xray")
|
||||
dir, err := os.MkdirTemp("", "xray")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user