mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
fix bugs
This commit is contained in:
parent
65629c0dfb
commit
848c7b014a
@ -105,7 +105,7 @@ func BuildSSUser(tag string, userInfo *panel.UserInfo, cypher string, serverKey
|
||||
}
|
||||
return &protocol.User{
|
||||
Level: 0,
|
||||
Email: tag,
|
||||
Email: BuildUserTag(tag, userInfo.Uuid),
|
||||
Account: serial.ToTypedMessage(ssAccount),
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ package conf
|
||||
|
||||
type CoreConfig struct {
|
||||
Type string `yaml:"Type"`
|
||||
XrayConfig *XrayConfig `yaml:"Xray"`
|
||||
XrayConfig *XrayConfig `yaml:"XrayConfig"`
|
||||
}
|
||||
|
||||
type XrayConfig struct {
|
||||
|
@ -8,7 +8,7 @@ type LogConfig struct {
|
||||
|
||||
func NewLogConfig() *LogConfig {
|
||||
return &LogConfig{
|
||||
Level: "none",
|
||||
Level: "warning",
|
||||
AccessPath: "",
|
||||
ErrorPath: "",
|
||||
}
|
||||
|
@ -177,7 +177,9 @@ func (c *Controller) nodeInfoMonitor() (err error) {
|
||||
}
|
||||
}
|
||||
c.userList = newUserInfo
|
||||
log.WithField("tag", c.Tag).
|
||||
Errorf("%d user deleted, %d user added", len(deleted), len(added))
|
||||
if len(added)+len(deleted) != 0 {
|
||||
log.WithField("tag", c.Tag).
|
||||
Infof("%d user deleted, %d user added", len(deleted), len(added))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -28,9 +28,9 @@ func (c *Controller) reportUserTrafficTask() (err error) {
|
||||
log.WithFields(log.Fields{
|
||||
"tag": c.Tag,
|
||||
"err": err,
|
||||
}).Error("Report user traffic faild")
|
||||
}).Info("Report user traffic failed")
|
||||
} else {
|
||||
log.WithField("tag", err).Errorf("Report %d online users", len(userTraffic))
|
||||
log.WithField("tag", c.Tag).Infof("Report %d online users", len(userTraffic))
|
||||
}
|
||||
}
|
||||
userTraffic = nil
|
||||
|
Loading…
Reference in New Issue
Block a user