mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
add node change log
This commit is contained in:
parent
41b06e0bc6
commit
ad03c27289
@ -21,7 +21,7 @@ import (
|
||||
_ "github.com/xtls/xray-core/app/dns"
|
||||
_ "github.com/xtls/xray-core/app/dns/fakedns"
|
||||
_ "github.com/xtls/xray-core/app/log"
|
||||
_ "github.com/xtls/xray-core/app/metrics"
|
||||
//_ "github.com/xtls/xray-core/app/metrics"
|
||||
_ "github.com/xtls/xray-core/app/policy"
|
||||
_ "github.com/xtls/xray-core/app/reverse"
|
||||
_ "github.com/xtls/xray-core/app/router"
|
||||
|
@ -55,6 +55,7 @@ func (c *Controller) nodeInfoMonitor() (err error) {
|
||||
if newNodeInfo != nil {
|
||||
// nodeInfo changed
|
||||
// Remove old tag
|
||||
log.Printf("[%s] Node changed, reload...", c.Tag)
|
||||
err = c.server.DelNode(c.Tag)
|
||||
if err != nil {
|
||||
log.Printf("[%s] Del node error: %s", c.Tag, err)
|
||||
@ -107,6 +108,7 @@ func (c *Controller) nodeInfoMonitor() (err error) {
|
||||
}
|
||||
c.nodeInfo = newNodeInfo
|
||||
c.userList = newUserInfo
|
||||
log.Printf("[%s] Added %d new users", c.Tag, len(newUserInfo))
|
||||
// exit
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user