mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 20:50:09 +00:00
update
add conditional compilation support add multi core support
This commit is contained in:
@@ -3,7 +3,7 @@ package node
|
||||
import (
|
||||
"github.com/Yuzuki616/V2bX/api/panel"
|
||||
"github.com/Yuzuki616/V2bX/conf"
|
||||
"github.com/Yuzuki616/V2bX/core"
|
||||
vCore "github.com/Yuzuki616/V2bX/core"
|
||||
)
|
||||
|
||||
type Node struct {
|
||||
@@ -14,7 +14,7 @@ func New() *Node {
|
||||
return &Node{}
|
||||
}
|
||||
|
||||
func (n *Node) Start(nodes []*conf.NodeConfig, core *core.Core) error {
|
||||
func (n *Node) Start(nodes []*conf.NodeConfig, core vCore.Core) error {
|
||||
n.controllers = make([]*Controller, len(nodes))
|
||||
for i, c := range nodes {
|
||||
p, err := panel.New(c.ApiConfig)
|
||||
|
||||
Reference in New Issue
Block a user