mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-13 13:57:05 +00:00
Fix panic when closing Box before Start with file log output
This commit is contained in:
parent
3294a46a28
commit
88bda5c306
1 changed files with 1 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ func New(options Options) (Factory, error) {
|
|||
case "stdout":
|
||||
logWriter = os.Stdout
|
||||
default:
|
||||
logWriter = io.Discard
|
||||
logFilePath = logOptions.Output
|
||||
}
|
||||
logFormatter := Formatter{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue