mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix rule unmarshal bug, change some error message, remove alterID support
This commit is contained in:
@@ -150,18 +150,17 @@ func getCore(v2bXConfig *conf.Conf) *core.Instance {
|
||||
}
|
||||
|
||||
// Start the Core
|
||||
func (p *Core) Start() {
|
||||
func (p *Core) Start() error {
|
||||
p.access.Lock()
|
||||
defer p.access.Unlock()
|
||||
log.Print("Start the panel..")
|
||||
if err := p.Server.Start(); err != nil {
|
||||
log.Panicf("Failed to start instance: %s", err)
|
||||
return err
|
||||
}
|
||||
p.shm = p.Server.GetFeature(statsFeature.ManagerType()).(statsFeature.Manager)
|
||||
p.ihm = p.Server.GetFeature(inbound.ManagerType()).(inbound.Manager)
|
||||
p.ohm = p.Server.GetFeature(outbound.ManagerType()).(outbound.Manager)
|
||||
p.dispatcher = p.Server.GetFeature(routing.DispatcherType()).(*dispatcher.DefaultDispatcher)
|
||||
return
|
||||
return nil
|
||||
}
|
||||
|
||||
// Close the core
|
||||
|
||||
Reference in New Issue
Block a user