Skip to content

Commit 4aaf778

Browse files
committed
fix: vless xray
1 parent 02073ca commit 4aaf778

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ray2sing/xrayvless.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func VlessXray(vlessURL string) (*T.Outbound, error) {
2121
// packetEncoding="xudp"
2222
// }
2323
user := map[string]string{
24-
"id": u.Username, // Change to your UUID.
24+
"id": u.Username,
2525
"encryption": "none",
2626
}
2727
if flow := decoded["flow"]; flow != "" {
@@ -33,7 +33,13 @@ func VlessXray(vlessURL string) (*T.Outbound, error) {
3333
"protocol": "vless",
3434
"settings": map[string]any{
3535
"vnext": []any{
36-
user,
36+
map[string]any{
37+
"address": u.Hostname,
38+
"port": u.Port,
39+
"users": []any{
40+
user,
41+
},
42+
},
3743
},
3844
},
3945
"tag": u.Name,

0 commit comments

Comments
 (0)