mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
fix add router to context
This commit is contained in:
parent
ab9ee7447a
commit
78837c348c
1
box.go
1
box.go
@ -86,6 +86,7 @@ func New(options Options) (*Box, error) {
|
||||
if err != nil {
|
||||
return nil, E.Cause(err, "parse route options")
|
||||
}
|
||||
ctx = adapter.ContextWithRouter(ctx, router)
|
||||
inbounds := make([]adapter.Inbound, 0, len(options.Inbounds))
|
||||
outbounds := make([]adapter.Outbound, 0, len(options.Outbounds))
|
||||
for i, inboundOptions := range options.Inbounds {
|
||||
|
Loading…
x
Reference in New Issue
Block a user