mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-11 17:47:20 +10:00
Fix panic when closing Box before Start with file log output
This commit is contained in:
@@ -40,6 +40,7 @@ func New(options Options) (Factory, error) {
|
||||
case "stdout":
|
||||
logWriter = os.Stdout
|
||||
default:
|
||||
logWriter = io.Discard
|
||||
logFilePath = logOptions.Output
|
||||
}
|
||||
logFormatter := Formatter{
|
||||
|
||||
Reference in New Issue
Block a user