Fix platform wrapper

This commit is contained in:
世界 2023-02-22 20:52:57 +08:00
parent 60094884cd
commit 140ed9a4cb
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
9 changed files with 339 additions and 27 deletions

View file

@ -6,6 +6,7 @@ import (
"os"
"time"
C "github.com/sagernet/sing-box/constant"
F "github.com/sagernet/sing/common/format"
)
@ -23,7 +24,8 @@ func NewFactory(formatter Formatter, writer io.Writer, platformWriter io.Writer)
return &simpleFactory{
formatter: formatter,
platformFormatter: Formatter{
BaseTime: formatter.BaseTime,
BaseTime: formatter.BaseTime,
DisableColors: C.IsIos,
},
writer: writer,
platformWriter: platformWriter,