Skip to content

Commit

Permalink
fixed some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxin239 committed Jun 9, 2024
1 parent 175e46d commit 793f26e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (c *Controller) addNewUser(userInfo *[]api.UserInfo, nodeInfo *api.NodeInfo
users := make([]*protocol.User, 0)
switch nodeInfo.NodeType {
case "V2ray", "Vmess", "Vless":
if nodeInfo.EnableVless {
if nodeInfo.EnableVless || (nodeInfo.NodeType == "Vless" && nodeInfo.NodeType != "Vmess") {
users = c.buildVlessUser(userInfo)
} else {
users = c.buildVmessUser(userInfo)
Expand Down
2 changes: 1 addition & 1 deletion service/controller/inboundbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func InboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.I
// Build Protocol and Protocol setting
switch nodeInfo.NodeType {
case "V2ray", "Vmess", "Vless":
if nodeInfo.EnableVless || nodeInfo.NodeType == "Vless" {
if nodeInfo.EnableVless || (nodeInfo.NodeType == "Vless" && nodeInfo.NodeType != "Vmess") {
protocol = "vless"
// Enable fallback
if config.EnableFallback {
Expand Down

2 comments on commit 793f26e

@zijiren233
Copy link

@zijiren233 zijiren233 commented on 793f26e Jun 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这有区别?

@yushum
Copy link

@yushum yushum commented on 793f26e Jun 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version还是0.9.2

Please sign in to comment.