Skip to content

Commit

Permalink
Add deprecated notification
Browse files Browse the repository at this point in the history
  • Loading branch information
xchacha20-poly1305 committed Nov 9, 2024
1 parent 4a0b3f7 commit 0bfb0e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcore/box.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/sagernet/sing-box/common/conntrack"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing-box/experimental/clashapi"
"github.com/sagernet/sing-box/experimental/deprecated"
"github.com/sagernet/sing-box/experimental/libbox/platform"
"github.com/sagernet/sing-box/include"
"github.com/sagernet/sing-box/log"
Expand Down Expand Up @@ -74,6 +75,7 @@ func NewBoxInstance(config string, platformInterface PlatformInterface) (b *BoxI
iif: platformInterface,
}
ctx = service.ContextWith[platform.Interface](ctx, interfaceWrapper)
ctx = service.ContextWith(ctx, deprecated.NewStderrManager(log.StdLogger()))

// If set PlatformLogWrapper, box will set something about cache file,
// which will panic with simple configuration (when URL test).
Expand Down

0 comments on commit 0bfb0e3

Please sign in to comment.