Auto calculate json focus

This commit is contained in:
Fangliding
2026-09-17 01:42:16 +08:00
parent d8d0e6455e
commit e42da10dbe
106 changed files with 249 additions and 259 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ FakeDNS будет использовать этот блок IP-адресов
"inbounds": [
{
// ...
// [!code focus:5]
// [!field focus]
"sniffing": {
"enabled": true,
"destOverride": ["fakedns"], // Используйте "fakedns" или в сочетании с другими снифферами.
+1 -1
View File
@@ -30,7 +30,7 @@
{
// ...
"protocol": "http",
// [!code focus:10]
// [!field focus]
"settings": {
"users": [
{
+1 -1
View File
@@ -14,7 +14,7 @@
{
// ...
"protocol": "hysteria",
// [!code focus:10]
// [!field focus]
"settings": {
"version": 2,
"users": [
+1 -1
View File
@@ -32,7 +32,7 @@
{
// ...
"protocol": "shadowsocks",
// [!code focus:13]
// [!field focus]
"settings": {
"network": "tcp,udp",
"method": "aes-256-gcm",
+1 -1
View File
@@ -18,7 +18,7 @@
{
// ...
"protocol": "socks",
// [!code focus:12]
// [!field focus]
"settings": {
"auth": "noauth",
"users": [
+1 -1
View File
@@ -12,7 +12,7 @@
{
// ...
"protocol": "trojan",
// [!code focus:14]
// [!field focus]
"settings": {
"users": [
{
+1 -1
View File
@@ -16,7 +16,7 @@
{
// ...
"protocol": "tun",
// [!code focus:10]
// [!field focus]
"settings": {
"name": "utun10",
"desc": "Wintun",
+1 -1
View File
@@ -12,7 +12,7 @@
{
// ...
"protocol": "tunnel",
// [!code focus:12]
// [!field focus]
"settings": {
"allowedNetwork": "tcp",
"rewriteAddress": "8.8.8.8",
+1 -1
View File
@@ -14,7 +14,7 @@ VLESS - это легкий транспортный протокол без с
{
// ...
"protocol": "vless",
// [!code focus:18]
// [!field focus]
"settings": {
"users": [
{
+1 -1
View File
@@ -16,7 +16,7 @@ VMess полагается на системное время. Убедитес
{
// ...
"protocol": "vmess",
// [!code focus:12]
// [!field focus]
"settings": {
"users": [
{
+1 -1
View File
@@ -16,7 +16,7 @@
{
// ...
"protocol": "wireguard",
// [!code focus:14]
// [!field focus]
"settings": {
"secretKey": "SERVER_PRIVATE_KEY",
"peers": [
+1 -1
View File
@@ -12,7 +12,7 @@ Blackhole - это протокол исходящих данных, котор
{
// ...
"protocol": "blackhole",
// [!code focus:5]
// [!field focus]
"settings": {
"response": {
"type": "none"
+1 -1
View File
@@ -16,7 +16,7 @@ DNS — это исходящий протокол, который приним
{
// ...
"protocol": "dns",
// [!code focus:18]
// [!field focus]
"settings": {
"rewriteNetwork": "udp",
"rewriteAddress": "1.1.1.1",
+1 -1
View File
@@ -16,7 +16,7 @@ Freedom — это протокол прямого исходящего подк
{
// ...
"protocol": "freedom",
// [!code focus:28]
// [!field focus]
"settings": {
"redirect": "127.0.0.1:3366",
"userLevel": 0,
+1 -1
View File
@@ -20,7 +20,7 @@
{
// ...
"protocol": "http",
// [!code focus:12]
// [!field focus]
"settings": {
"address": "192.168.108.1",
"port": 3128,
+1 -1
View File
@@ -18,7 +18,7 @@
{
// ...
"protocol": "hysteria",
// [!code focus:5]
// [!field focus]
"settings": {
"version": 2,
"address": "192.168.108.1",
+1 -1
View File
@@ -27,7 +27,7 @@ Loopback — это outbound с возвратом трафика, которы
{
// ...
"protocol": "loopback",
// [!code focus:4]
// [!field focus]
"settings": {
"inboundTag": "TagUseAsInbound",
"sniffing": {}
+1 -1
View File
@@ -32,7 +32,7 @@
{
// ...
"protocol": "shadowsocks",
// [!code focus:8]
// [!field focus]
"settings": {
"email": "love@xray.com",
"address": "127.0.0.1",
+1 -1
View File
@@ -16,7 +16,7 @@
{
// ...
"protocol": "socks",
// [!code focus:8]
// [!field focus]
"settings": {
"address": "127.0.0.1",
"port": 1234,
+1 -1
View File
@@ -12,7 +12,7 @@
{
// ...
"protocol": "trojan",
// [!code focus:7]
// [!field focus]
"settings": {
"address": "127.0.0.1",
"port": 1234,
+1 -1
View File
@@ -14,7 +14,7 @@ VLESS - это легкий транспортный протокол без с
{
// ...
"protocol": "vless",
// [!code focus:9]
// [!field focus]
"settings": {
"address": "example.com",
"port": 443,
+1 -1
View File
@@ -16,7 +16,7 @@ VMess полагается на системное время. Убедитес
{
// ...
"protocol": "vmess",
// [!code focus:8]
// [!field focus]
"settings": {
"address": "127.0.0.1",
"port": 37192,
+1 -1
View File
@@ -16,7 +16,7 @@
{
// ...
"protocol": "wireguard",
// [!code focus:20]
// [!field focus]
"settings": {
"secretKey": "CLIENT_PRIVATE_KEY",
"address": ["10.0.0.1", "fd59:7153:2388:b5fd:0000:0000:0000:0001"],
+1 -1
View File
@@ -24,7 +24,7 @@
"outbounds": [
{
// ...
// [!code focus:18]
// [!field focus]
"streamSettings": {
// Способы передачи
"method": "raw",
+15 -15
View File
@@ -15,7 +15,7 @@ FinalMask добавляет последний слой маскировки п
{
// ...
"streamSettings": {
// [!code focus:33]
// [!field focus]
"finalmask": {
"tcp": [
{
@@ -62,7 +62,7 @@ FinalMask добавляет последний слой маскировки п
```json
{
"finalmask": {
// [!code focus:6]
// [!field focus]
"tcp": [
{
"type": "",
@@ -88,7 +88,7 @@ FinalMask добавляет последний слой маскировки п
```json
{
"type": "header-custom",
// [!code focus:35]
// [!field focus]
"settings": {
"clients": [
[
@@ -142,7 +142,7 @@ FinalMask добавляет последний слой маскировки п
```json
{
"type": "fragment",
// [!code focus:6]
// [!field focus]
"settings": {
"packets": "tlshello",
"lengths": ["3-5", "6-8", "10-20"],
@@ -175,7 +175,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "sudoku",
// [!code focus:10]
// [!field focus]
"settings": {
"password": "",
"ascii": "",
@@ -198,7 +198,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"finalmask": {
// [!code focus:6]
// [!field focus]
"udp": [
{
"type": "",
@@ -226,7 +226,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "header-custom",
// [!code focus:18]
// [!field focus]
"settings": {
"client": [
{
@@ -261,7 +261,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "mkcp-legacy",
// [!code focus:4]
// [!field focus]
"settings": {
"header": "", // dns dtls srtp utp wechat wireguard
"value": "" // password domain
@@ -292,7 +292,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "noise",
// [!code focus:12]
// [!field focus]
"settings": {
"reset": "30-60",
"noise": [
@@ -327,7 +327,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "salamander",
// [!code focus:4]
// [!field focus]
"settings": {
"password": "your-password",
"packetSize": "512-1200"
@@ -348,7 +348,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "sudoku",
// [!code focus:10]
// [!field focus]
"settings": {
"password": "",
"ascii": "",
@@ -379,7 +379,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "xdns",
// [!code focus:4]
// [!field focus]
"settings": {
"domains": ["t.example.com"],
"resolvers": ["t.example.com+udp://8.8.8.8:53"]
@@ -398,7 +398,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "xicmp",
// [!code focus:4]
// [!field focus]
"settings": {
"dgram": false, // optional
"ips": [] // optional
@@ -417,7 +417,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"type": "realm",
// [!code focus:8]
// [!field focus]
"settings": {
"url": "realm://public@xxx/your-realm-name",
"stunServers": [
@@ -442,7 +442,7 @@ n-й элемент массива задаёт, сколько ждать по
```json
{
"finalmask": {
// [!code focus:19]
// [!field focus]
"quicParams": {
"congestion": "force-brutal",
"bbrProfile": "standard",
+1 -1
View File
@@ -48,7 +48,7 @@ gRPC (HTTP/2) имеет встроенное мультиплексирован
// ...
"streamSettings": {
"method": "grpc",
// [!code focus:10]
// [!field focus]
"grpcSettings": {
"authority": "grpc.example.com",
"serviceName": "name",
+1 -1
View File
@@ -20,7 +20,7 @@
// ...
"streamSettings": {
"method": "httpupgrade",
// [!code focus:8]
// [!field focus]
"httpupgradeSettings": {
"acceptProxyProtocol": false,
"path": "/",
+1 -1
View File
@@ -14,7 +14,7 @@
// ...
"streamSettings": {
"method": "hysteria",
// [!code focus:17]
// [!field focus]
"hysteriaSettings": {
"version": 2,
"auth": "password",
+1 -1
View File
@@ -20,7 +20,7 @@ mKCP жертвует пропускной способностью ради у
// ...
"streamSettings": {
"method": "mkcp",
// [!code focus:9]
// [!field focus]
"kcpSettings": {
"mtu": 1350,
"tti": 20,
+1 -1
View File
@@ -16,7 +16,7 @@
// ...
"streamSettings": {
"method": "raw",
// [!code focus:6]
// [!field focus]
"rawSettings": {
"acceptProxyProtocol": false,
"header": {
+1 -1
View File
@@ -26,7 +26,7 @@ REALITY модифицирует только TLS. На стороне клие
// ...
"streamSettings": {
"security": "reality",
// [!code focus:30]
// [!field focus]
"realitySettings": {
// Входящие настройки (сервер)
"show": false,
+1 -1
View File
@@ -15,7 +15,7 @@ Sockopt используется для настройки низкоуровн
{
// ...
"streamSettings": {
// [!code focus:21]
// [!field focus]
"sockopt": {
"mark": 0,
"tcpMaxSeg": 1440,
+1 -1
View File
@@ -18,7 +18,7 @@ TLS — это обычный механизм защиты транспорта
// ...
"streamSettings": {
"security": "tls",
// [!code focus:20]
// [!field focus]
"tlsSettings": {
"serverName": "xray.com",
"verifyPeerCertByName": "",
+1 -1
View File
@@ -24,7 +24,7 @@ WebSocket распознает заголовок X-Forwarded-For в HTTP-зап
// ...
"streamSettings": {
"method": "websocket",
// [!code focus:9]
// [!field focus]
"wsSettings": {
"acceptProxyProtocol": false,
"path": "/",