mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix bug: func RouterFromContext return nil router
This commit is contained in:
@@ -31,6 +31,7 @@ type DNSConfig struct {
|
||||
}
|
||||
|
||||
type Box struct {
|
||||
ctx context.Context
|
||||
createdAt time.Time
|
||||
router adapter.Router
|
||||
inbounds map[string]adapter.Inbound
|
||||
@@ -169,6 +170,7 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
|
||||
}
|
||||
router.SetClashServer(server)
|
||||
return &Box{
|
||||
ctx: ctx,
|
||||
router: router,
|
||||
inbounds: inMap,
|
||||
outbounds: outbounds,
|
||||
|
||||
Reference in New Issue
Block a user