mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-07-24 20:07:57 +00:00
update: switch vless flow on local config
This commit is contained in:
@@ -41,6 +41,7 @@ type NodeInfo struct {
|
|||||||
Path string
|
Path string
|
||||||
EnableTLS bool
|
EnableTLS bool
|
||||||
EnableVless bool
|
EnableVless bool
|
||||||
|
VlessFlow string
|
||||||
CypherMethod string
|
CypherMethod string
|
||||||
ServerKey string
|
ServerKey string
|
||||||
ServiceName string
|
ServiceName string
|
||||||
|
@@ -22,6 +22,7 @@ Nodes:
|
|||||||
NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
|
NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
|
||||||
Timeout: 30 # Timeout for the api request
|
Timeout: 30 # Timeout for the api request
|
||||||
EnableVless: false # Enable Vless for V2ray Type
|
EnableVless: false # Enable Vless for V2ray Type
|
||||||
|
VlessFlow: "xtls-rprx-vision" # Only support vless
|
||||||
SpeedLimit: 0 # Mbps, Local settings will replace remote settings, 0 means disable
|
SpeedLimit: 0 # Mbps, Local settings will replace remote settings, 0 means disable
|
||||||
DeviceLimit: 0 # Local settings will replace remote settings, 0 means disable
|
DeviceLimit: 0 # Local settings will replace remote settings, 0 means disable
|
||||||
RuleListPath: # /etc/XrayR/rulelist Path to local rulelist file
|
RuleListPath: # /etc/XrayR/rulelist Path to local rulelist file
|
||||||
|
@@ -47,7 +47,7 @@ func (c *Controller) buildVlessUser(userInfo *[]api.UserInfo) (users []*protocol
|
|||||||
for i, user := range *userInfo {
|
for i, user := range *userInfo {
|
||||||
vlessAccount := &vless.Account{
|
vlessAccount := &vless.Account{
|
||||||
Id: user.UUID,
|
Id: user.UUID,
|
||||||
Flow: vless.XRV,
|
Flow: c.nodeInfo.VlessFlow,
|
||||||
}
|
}
|
||||||
users[i] = &protocol.User{
|
users[i] = &protocol.User{
|
||||||
Level: 0,
|
Level: 0,
|
||||||
|
Reference in New Issue
Block a user