mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08: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{
|
return &protocol.User{
|
||||||
Level: 0,
|
Level: 0,
|
||||||
Email: tag,
|
Email: BuildUserTag(tag, userInfo.Uuid),
|
||||||
Account: serial.ToTypedMessage(ssAccount),
|
Account: serial.ToTypedMessage(ssAccount),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ package conf
|
|||||||
|
|
||||||
type CoreConfig struct {
|
type CoreConfig struct {
|
||||||
Type string `yaml:"Type"`
|
Type string `yaml:"Type"`
|
||||||
XrayConfig *XrayConfig `yaml:"Xray"`
|
XrayConfig *XrayConfig `yaml:"XrayConfig"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type XrayConfig struct {
|
type XrayConfig struct {
|
||||||
|
@ -8,7 +8,7 @@ type LogConfig struct {
|
|||||||
|
|
||||||
func NewLogConfig() *LogConfig {
|
func NewLogConfig() *LogConfig {
|
||||||
return &LogConfig{
|
return &LogConfig{
|
||||||
Level: "none",
|
Level: "warning",
|
||||||
AccessPath: "",
|
AccessPath: "",
|
||||||
ErrorPath: "",
|
ErrorPath: "",
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,9 @@ func (c *Controller) nodeInfoMonitor() (err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.userList = newUserInfo
|
c.userList = newUserInfo
|
||||||
log.WithField("tag", c.Tag).
|
if len(added)+len(deleted) != 0 {
|
||||||
Errorf("%d user deleted, %d user added", len(deleted), len(added))
|
log.WithField("tag", c.Tag).
|
||||||
|
Infof("%d user deleted, %d user added", len(deleted), len(added))
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -28,9 +28,9 @@ func (c *Controller) reportUserTrafficTask() (err error) {
|
|||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
"tag": c.Tag,
|
"tag": c.Tag,
|
||||||
"err": err,
|
"err": err,
|
||||||
}).Error("Report user traffic faild")
|
}).Info("Report user traffic failed")
|
||||||
} else {
|
} 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
|
userTraffic = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user