mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-28 05:02:43 +03:00
Update sing-box core, refactor MASQUE, update XHTTP
This commit is contained in:
@@ -8,8 +8,6 @@ import (
|
||||
"runtime/debug"
|
||||
)
|
||||
|
||||
var crashOutputFile *os.File
|
||||
|
||||
func RedirectStderr(path string) error {
|
||||
if stats, err := os.Stat(path); err == nil && stats.Size() > 0 {
|
||||
_ = os.Rename(path, path+".old")
|
||||
@@ -32,6 +30,5 @@ func RedirectStderr(path string) error {
|
||||
os.Remove(outputFile.Name())
|
||||
return err
|
||||
}
|
||||
crashOutputFile = outputFile
|
||||
return nil
|
||||
return outputFile.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user