Move code focus

This commit is contained in:
Fangliding
2026-05-25 18:39:42 +08:00
parent 6e044d091c
commit 525969079b
99 changed files with 99 additions and 99 deletions
+1 -1
View File
@@ -29,8 +29,8 @@
{
// ...
"protocol": "http",
// [!code focus:10]
"settings": {
// [!code focus:8]
"users": [
{
"user": "my-username",
+1 -1
View File
@@ -14,8 +14,8 @@
{
// ...
"protocol": "hysteria",
// [!code focus:10]
"settings": {
// [!code focus:8]
"version": 2,
"users": [
{
+1 -1
View File
@@ -37,8 +37,8 @@
{
// ...
"protocol": "shadowsocks",
// [!code focus:13]
"settings": {
// [!code focus:11]
"network": "tcp,udp",
"method": "aes-256-gcm",
"password": "114514",
+1 -1
View File
@@ -18,8 +18,8 @@
{
// ...
"protocol": "socks",
// [!code focus:12]
"settings": {
// [!code focus:10]
"auth": "noauth",
"users": [
{
+1 -1
View File
@@ -16,8 +16,8 @@ Trojan предназначен для работы в правильно нас
{
// ...
"protocol": "trojan",
// [!code focus:14]
"settings": {
// [!code focus:12]
"users": [
{
"password": "password",
+1 -1
View File
@@ -14,8 +14,8 @@
{
// ...
"protocol": "tun",
// [!code focus:9]
"settings": {
// [!code focus:7]
"name": "xray0",
"mtu": 1500,
"gateway": ["10.0.0.1/16", "fc00::1/64"],
+1 -1
View File
@@ -12,8 +12,8 @@
{
// ...
"protocol": "tunnel",
// [!code focus:12]
"settings": {
// [!code focus:10]
"allowedNetwork": "tcp",
"rewriteAddress": "8.8.8.8",
"rewritePort": 53,
+1 -1
View File
@@ -14,8 +14,8 @@ VLESS - это легкий транспортный протокол без с
{
// ...
"protocol": "vless",
// [!code focus:17]
"settings": {
// [!code focus:15]
"flow": "xtls-rprx-vision",
"users": [
{
+1 -1
View File
@@ -16,8 +16,8 @@ VMess полагается на системное время. Убедитес
{
// ...
"protocol": "vmess",
// [!code focus:12]
"settings": {
// [!code focus:10]
"users": [
{
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
+1 -1
View File
@@ -16,8 +16,8 @@
{
// ...
"protocol": "wireguard",
// [!code focus:10]
"settings": {
// [!code focus:8]
"secretKey": "PRIVATE_KEY",
"peers": [
{
+1 -1
View File
@@ -12,8 +12,8 @@ Blackhole - это протокол исходящих данных, котор
{
// ...
"protocol": "blackhole",
// [!code focus:5]
"settings": {
// [!code focus:3]
"response": {
"type": "none"
}
+1 -1
View File
@@ -16,8 +16,8 @@ DNS — это исходящий протокол, который приним
{
// ...
"protocol": "dns",
// [!code focus:17]
"settings": {
// [!code focus:15]
"rewriteNetwork": "udp",
"rewriteAddress": "1.1.1.1",
"rewritePort": 53,
+1 -1
View File
@@ -16,8 +16,8 @@ Freedom — это исходящий протокол, который можн
{
// ...
"protocol": "freedom",
// [!code focus:29]
"settings": {
// [!code focus:27]
"domainStrategy": "AsIs",
"redirect": "127.0.0.1:3366",
"userLevel": 0,
+1 -1
View File
@@ -20,8 +20,8 @@
{
// ...
"protocol": "http",
// [!code focus:12]
"settings": {
// [!code focus:10]
"address": "192.168.108.1",
"port": 3128,
"user": "my-username",
+1 -1
View File
@@ -18,8 +18,8 @@
{
// ...
"protocol": "hysteria",
// [!code focus:5]
"settings": {
// [!code focus:3]
"version": 2,
"address": "192.168.108.1",
"port": 3128
+1 -1
View File
@@ -12,8 +12,8 @@ Loopback - это исходящий протокол данных, которы
{
// ...
"protocol": "loopback",
// [!code focus:3]
"settings": {
// [!code focus:1]
"inboundTag": "TagUseAsInbound"
}
}
+1 -1
View File
@@ -37,8 +37,8 @@
{
// ...
"protocol": "shadowsocks",
// [!code focus:10]
"settings": {
// [!code focus:8]
"email": "love@xray.com",
"address": "127.0.0.1",
"port": 1234,
+1 -1
View File
@@ -16,8 +16,8 @@
{
// ...
"protocol": "socks",
// [!code focus:8]
"settings": {
// [!code focus:6]
"address": "127.0.0.1",
"port": 1234,
"user": "test user",
+1 -1
View File
@@ -16,8 +16,8 @@ Trojan предназначен для работы в правильно нас
{
// ...
"protocol": "trojan",
// [!code focus:7]
"settings": {
// [!code focus:5]
"address": "127.0.0.1",
"port": 1234,
"password": "password",
+1 -1
View File
@@ -14,8 +14,8 @@ VLESS - это легкий транспортный протокол без с
{
// ...
"protocol": "vless",
// [!code focus:9]
"settings": {
// [!code focus:7]
"address": "example.com",
"port": 443,
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
+1 -1
View File
@@ -16,8 +16,8 @@ VMess полагается на системное время. Убедитес
{
// ...
"protocol": "vmess",
// [!code focus:8]
"settings": {
// [!code focus:6]
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
"security": "auto",
"level": 0,
+1 -1
View File
@@ -16,8 +16,8 @@
{
// ...
"protocol": "wireguard",
// [!code focus:20]
"settings": {
// [!code focus:18]
"secretKey": "PRIVATE_KEY",
"address": [
// необязательно, по умолчанию ["10.0.0.1", "fd59:7153:2388:b5fd:0000:0000:0000:0001"]
+1 -1
View File
@@ -24,8 +24,8 @@
"outbounds": [
{
// ...
// [!code focus:18]
"streamSettings": {
// [!code focus:16]
// Способы передачи
"network": "raw",
"rawSettings": {},
+1 -1
View File
@@ -15,8 +15,8 @@ FinalMask добавляет последний слой маскировки п
{
// ...
"streamSettings": {
// [!code focus:33]
"finalmask": {
// [!code focus:31]
"tcp": [
{
"type": "",
+1 -1
View File
@@ -44,8 +44,8 @@ gRPC (HTTP/2) имеет встроенное мультиплексирован
// ...
"streamSettings": {
"network": "grpc",
// [!code focus:10]
"grpcSettings": {
// [!code focus:8]
"authority": "grpc.example.com",
"serviceName": "name",
"multiMode": false,
+1 -1
View File
@@ -20,8 +20,8 @@
// ...
"streamSettings": {
"network": "httpupgrade",
// [!code focus:8]
"httpupgradeSettings": {
// [!code focus:6]
"acceptProxyProtocol": false,
"path": "/",
"host": "xray.com",
+1 -1
View File
@@ -14,8 +14,8 @@
// ...
"streamSettings": {
"network": "hysteria",
// [!code focus:17]
"hysteriaSettings": {
// [!code focus:15]
"version": 2,
"auth": "password",
"udpIdleTimeout": 60,
+1 -1
View File
@@ -20,8 +20,8 @@ mKCP жертвует пропускной способностью ради у
// ...
"streamSettings": {
"network": "mkcp",
// [!code focus:9]
"kcpSettings": {
// [!code focus:7]
"mtu": 1350,
"tti": 20,
"uplinkCapacity": 5,
+1 -1
View File
@@ -16,8 +16,8 @@
// ...
"streamSettings": {
"network": "raw",
// [!code focus:6]
"rawSettings": {
// [!code focus:4]
"acceptProxyProtocol": false,
"header": {
"type": "none"
+1 -1
View File
@@ -26,8 +26,8 @@ REALITY модифицирует только TLS. На стороне клие
// ...
"streamSettings": {
"security": "reality",
// [!code focus:30]
"realitySettings": {
// [!code focus:28]
// Входящие настройки (сервер)
"show": false,
"target": "example.com:443",
+1 -1
View File
@@ -15,8 +15,8 @@ Sockopt используется для настройки низкоуровн
{
// ...
"streamSettings": {
// [!code focus:21]
"sockopt": {
// [!code focus:19]
"mark": 0,
"tcpMaxSeg": 1440,
"tcpFastOpen": false,
+1 -1
View File
@@ -18,8 +18,8 @@ TLS — это обычный механизм защиты транспорта
// ...
"streamSettings": {
"security": "tls",
// [!code focus:20]
"tlsSettings": {
// [!code focus:18]
"serverName": "xray.com",
"verifyPeerCertByName": "",
"rejectUnknownSni": false,
+1 -1
View File
@@ -24,8 +24,8 @@ WebSocket распознает заголовок X-Forwarded-For в HTTP-зап
// ...
"streamSettings": {
"network": "websocket",
// [!code focus:9]
"wsSettings": {
// [!code focus:7]
"acceptProxyProtocol": false,
"path": "/",
"host": "xray.com",