Document: Deprecated vnext.users

This commit is contained in:
Meow
2026-05-06 19:40:33 +08:00
parent 9e37b04049
commit 9dc91349a8
21 changed files with 187 additions and 355 deletions
+4 -12
View File
@@ -10,7 +10,7 @@ To configure more complex features, please refer to the detailed instructions in
To avoid your traffic being decrypted,<br>
You should use `xray uuid` or `uuidgen` to generate a unique UUID.<br>
On the server side, put it in `inbounds[0].settings.users[0].id`.<br>
On the client side, put it in `outbounds[0].settings.vnext[0].users[0].id`.<br>
On the client side, put it in `outbounds[0].settings.id`.<br>
:::
## Server Configuration
@@ -62,17 +62,9 @@ On your PC (or mobile phone), you need to run Xray with the following configurat
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "server", // Server address. Please change to your own server IP or domain name.
"port": 10086, // Server port
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Remember to replace this field, generate using `xray uuid` or `uuidgen`
}
]
}
]
"address": "server", // Server address. Please change to your own server IP or domain name.
"port": 10086, // Server port
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Remember to replace this field, generate using `xray uuid` or `uuidgen`
}
},
{
+6 -14
View File
@@ -206,20 +206,12 @@ Its disadvantage is probably that [hand-writing configuration files] is a bit tr
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "a-name.yourdomain.com", // Replace with your real domain
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // Consistent with server-side
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "a-name.yourdomain.com", // Replace with your real domain
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // Consistent with server-side
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
+6 -14
View File
@@ -82,20 +82,12 @@ The following outbound configuration example, in plain English, means: Data is s
"tag": "proxy-out-vless",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "a-name.yourdomain.com",
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "a-name.yourdomain.com",
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
@@ -190,18 +190,10 @@ Enable auto-start on boot:
"tag": "nginxtls",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"port": 6666,
"users": [
{
"id": "uuid",
"encryption": "none"
}
]
}
]
"address": "127.0.0.1",
"port": 6666,
"id": "uuid",
"encryption": "none"
},
"streamSettings": {
"sockopt": {
+5 -13
View File
@@ -65,19 +65,11 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "Server_Domain",
"port": 443,
"users": [
{
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
}
]
}
]
"address": "Server_Domain",
"port": 443,
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
},
"streamSettings": {
"network": "tcp",
@@ -70,19 +70,11 @@ If the Xray program is not installed on the side router, you can manually downlo
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "yourdomain.domain", // Change to your own domain. Direct IPv4 or IPv6 address is also acceptable.
"port": 443,
"users": [
{
"id": "uuid", // Fill in UUID. Can be generated by typing 'xray uuid' in terminal; Arbitrary strings are also supported (https://xtls.github.io/en/config/inbounds/vless.html#userobject)
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
"address": "yourdomain.domain", // Change to your own domain. Direct IPv4 or IPv6 address is also acceptable.
"port": 443,
"id": "uuid", // Fill in UUID. Can be generated by typing 'xray uuid' in terminal; Arbitrary strings are also supported (https://xtls.github.io/en/config/inbounds/vless.html#userobject)
"encryption": "none",
"flow": "xtls-rprx-vision"
},
"streamSettings": {
"sockopt": {
+32 -40
View File
@@ -170,47 +170,39 @@ Add the following to your existing routing rules:
```json
{
"outbounds":[
{
"protocol":"wireguard",
"settings":{
"secretKey":"My_Private_Key",
"peers":[
{
"publicKey":"Warp_Public_Key",
"endpoint":"engage.cloudflareclient.com:2408"
}
],
"reserved":[0, 0, 0] // If you have it, paste 'reserved' here
},
"streamSettings":{
"sockopt":{
"dialerProxy":"proxy"
}
},
"tag":"wireguard-1"
"outbounds": [
{
"protocol": "wireguard",
"settings": {
"secretKey": "My_Private_Key",
"peers": [
{
"publicKey": "Warp_Public_Key",
"endpoint": "engage.cloudflareclient.com:2408"
}
],
"reserved": [0, 0, 0] // If you have it, paste 'reserved' here
},
{
"tag":"proxy",
"protocol":"vmess",
"settings":{
"vnext":[
{
"address":"My_Server_IP",
"port":My_Port,
"users":[
{
"id":"My_UUID",
"security":"auto"
}
]
}
]
},
"streamSettings":{
"network":"tcp"
}
"streamSettings": {
"sockopt": {
"dialerProxy": "proxy"
}
},
"tag": "wireguard-1"
},
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"address": "My_Server_IP",
"port": My_Port,
"id": "My_UUID",
"security": "auto"
},
"streamSettings": {
"network": "tcp"
}
]
}
]
}
```