mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-08 13:29:54 +00:00
fixed some bug
This commit is contained in:
parent
175e46d0b7
commit
793f26e763
@ -406,7 +406,7 @@ func (c *Controller) addNewUser(userInfo *[]api.UserInfo, nodeInfo *api.NodeInfo
|
|||||||
users := make([]*protocol.User, 0)
|
users := make([]*protocol.User, 0)
|
||||||
switch nodeInfo.NodeType {
|
switch nodeInfo.NodeType {
|
||||||
case "V2ray", "Vmess", "Vless":
|
case "V2ray", "Vmess", "Vless":
|
||||||
if nodeInfo.EnableVless {
|
if nodeInfo.EnableVless || (nodeInfo.NodeType == "Vless" && nodeInfo.NodeType != "Vmess") {
|
||||||
users = c.buildVlessUser(userInfo)
|
users = c.buildVlessUser(userInfo)
|
||||||
} else {
|
} else {
|
||||||
users = c.buildVmessUser(userInfo)
|
users = c.buildVmessUser(userInfo)
|
||||||
|
@ -58,7 +58,7 @@ func InboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.I
|
|||||||
// Build Protocol and Protocol setting
|
// Build Protocol and Protocol setting
|
||||||
switch nodeInfo.NodeType {
|
switch nodeInfo.NodeType {
|
||||||
case "V2ray", "Vmess", "Vless":
|
case "V2ray", "Vmess", "Vless":
|
||||||
if nodeInfo.EnableVless || nodeInfo.NodeType == "Vless" {
|
if nodeInfo.EnableVless || (nodeInfo.NodeType == "Vless" && nodeInfo.NodeType != "Vmess") {
|
||||||
protocol = "vless"
|
protocol = "vless"
|
||||||
// Enable fallback
|
// Enable fallback
|
||||||
if config.EnableFallback {
|
if config.EnableFallback {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user