mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix bug
This commit is contained in:
4
main.go
4
main.go
@@ -30,8 +30,8 @@ var (
|
||||
func showVersion() {
|
||||
fmt.Printf("%s %s (%s) \n", codename, version, intro)
|
||||
// Warning
|
||||
fmt.Printf("%sThis version need V2board version >= 1.7.0.", warnColor)
|
||||
fmt.Printf("%sThis version changed config file. Please check config file before running.", warnColor)
|
||||
fmt.Printf("%sThis version need V2board version >= 1.7.0.\n", warnColor)
|
||||
fmt.Printf("%sThis version changed config file. Please check config file before running.\n", warnColor)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -68,7 +68,12 @@ func (c *Controller) Start() error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("add new tag failed: %s", err)
|
||||
}
|
||||
added, err := c.server.AddUsers(&core.AddUsersParams{})
|
||||
added, err := c.server.AddUsers(&core.AddUsersParams{
|
||||
Tag: c.Tag,
|
||||
Config: c.ControllerConfig,
|
||||
UserInfo: c.userList,
|
||||
NodeInfo: c.nodeInfo,
|
||||
})
|
||||
log.Printf("[%s: %d] Added %d new users", c.nodeInfo.NodeType, c.nodeInfo.NodeId, added)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user