Transport: Rename network to method

https://github.com/XTLS/Xray-core/pull/6426#issuecomment-4899048255
This commit is contained in:
Meow
2026-07-11 21:15:51 +08:00
parent ef9691e3e8
commit 3bd509bad9
48 changed files with 99 additions and 99 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ First, various configurations can refer to the [official VLESS configuration exa
]
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": "http/1.1",
@@ -214,7 +214,7 @@ Its disadvantage is probably that [hand-writing configuration files] is a bit tr
"level": 0
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "tls",
"tlsSettings": {
"serverName": "a-name.yourdomain.com", // Replace with your real domain
+5 -5
View File
@@ -172,7 +172,7 @@ Now that you understand what the [Perfect Form of Fallback] is, you can get your
]
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": ["http/1.1"],
@@ -249,7 +249,7 @@ How do we explain this configuration in plain language?
]
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "none",
"tcpSettings": {
"acceptProxyProtocol": true
@@ -280,7 +280,7 @@ How do we explain this configuration in plain language?
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"method": "ws",
"security": "none",
"wsSettings": {
"acceptProxyProtocol": true, // Reminder: Delete this line if using Nginx/Caddy to reverse proxy WS
@@ -307,7 +307,7 @@ How do we explain this configuration in plain language?
]
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "none",
"tcpSettings": {
"acceptProxyProtocol": true,
@@ -345,7 +345,7 @@ How do we explain this configuration in plain language?
]
},
"streamSettings": {
"network": "ws",
"method": "ws",
"security": "none",
"wsSettings": {
"acceptProxyProtocol": true, // Reminder: Delete this line if using Nginx/Caddy to reverse proxy WS
@@ -117,7 +117,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
]
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": ["h2", "http/1.1"],
@@ -142,7 +142,7 @@ acme.sh --install-cert -d example.com --fullchain-file /etc/ssl/xray/cert.pem --
]
},
"streamSettings": {
"network": "ws",
"method": "ws",
"wsSettings": {
"acceptProxyProtocol": true,
"path": "/vmessws"
@@ -90,7 +90,7 @@ The following outbound configuration example, in plain English, means: Data is s
"level": 0
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "tls",
"tlsSettings": {
"serverName": "a-name.yourdomain.com",
@@ -119,7 +119,7 @@ Enable auto-start on boot:
"decryption": "none"
},
"streamSettings": {
"network": "tcp"
"method": "tcp"
},
"sniffing": {
"enabled": true,
@@ -199,7 +199,7 @@ Enable auto-start on boot:
"sockopt": {
"mark": 255
},
"network": "tcp"
"method": "tcp"
}
},
{
+1 -1
View File
@@ -72,7 +72,7 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
"encryption": "none"
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "xtls",
"sockopt": {
"mark": 2
@@ -80,7 +80,7 @@ If the Xray program is not installed on the side router, you can manually downlo
"sockopt": {
"mark": 255
},
"network": "tcp",
"method": "tcp",
"security": "tls", // Note: must be tls when using xtls-rprx-vision flow
"tlsSettings": {
// Note: must be tlsSettings when using xtls-rprx-vision flow
@@ -228,7 +228,7 @@ If the Xray program is not installed on the side router, you can manually downlo
]
},
"streamSettings": {
"network": "tcp",
"method": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
+1 -1
View File
@@ -200,7 +200,7 @@ Add the following to your existing routing rules:
"security": "auto"
},
"streamSettings": {
"network": "tcp"
"method": "tcp"
}
}
]