mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
This reverts commit eaf401eda9
.
This commit is contained in:
parent
8c0d3c0257
commit
ff5ce767df
2 changed files with 3 additions and 12 deletions
|
@ -3,7 +3,7 @@ package filesystem
|
|||
import (
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/xtls/xray-core/common/buf"
|
||||
"github.com/xtls/xray-core/common/platform"
|
||||
)
|
||||
|
@ -11,11 +11,7 @@ import (
|
|||
type FileReaderFunc func(path string) (io.ReadCloser, error)
|
||||
|
||||
var NewFileReader FileReaderFunc = func(path string) (io.ReadCloser, error) {
|
||||
resolved_path,err:=filepath.EvalSymlinks(path)
|
||||
if err!= nil{
|
||||
return nil,err
|
||||
}
|
||||
return os.Open(resolved_path)
|
||||
return os.Open(path)
|
||||
}
|
||||
|
||||
func ReadFile(path string) ([]byte, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue