mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-03 20:07:36 +03:00
Add clash mode support
This commit is contained in:
parent
80cfc9a25b
commit
5297273937
12 changed files with 98 additions and 23 deletions
2
box.go
2
box.go
|
@ -154,7 +154,7 @@ func New(ctx context.Context, options option.Options) (*Box, error) {
|
|||
if err != nil {
|
||||
return nil, E.Cause(err, "create clash api server")
|
||||
}
|
||||
router.SetTrafficController(clashServer)
|
||||
router.SetClashServer(clashServer)
|
||||
}
|
||||
return &Box{
|
||||
router: router,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue