Skip to content

Commit

Permalink
update: switch vless flow on local config
Browse files Browse the repository at this point in the history
  • Loading branch information
Septrum101 committed May 25, 2023
1 parent 0bec6c4 commit 9590697
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/apimodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type NodeInfo struct {
Path string
EnableTLS bool
EnableVless bool
VlessFlow string
CypherMethod string
ServerKey string
ServiceName string
Expand Down
1 change: 1 addition & 0 deletions main/config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Nodes:
NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
Timeout: 30 # Timeout for the api request
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
DeviceLimit: 0 # Local settings will replace remote settings, 0 means disable
RuleListPath: # /etc/XrayR/rulelist Path to local rulelist file
Expand Down
2 changes: 1 addition & 1 deletion service/controller/userbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (c *Controller) buildVlessUser(userInfo *[]api.UserInfo) (users []*protocol
for i, user := range *userInfo {
vlessAccount := &vless.Account{
Id: user.UUID,
Flow: vless.XRV,
Flow: c.nodeInfo.VlessFlow,
}
users[i] = &protocol.User{
Level: 0,
Expand Down

0 comments on commit 9590697

Please sign in to comment.