mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-27 17:38:05 +03:00
Check json format in CI
This commit is contained in:
@@ -112,7 +112,7 @@ iptables -t mangle -A OUTPUT -m owner ! --gid-owner 23333 -j XRAY_SELF
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
你的服务器配置
|
||||
// 你的服务器配置
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -96,17 +96,13 @@ lsmod | grep wireguard
|
||||
```json
|
||||
{
|
||||
"api": {
|
||||
"services": [
|
||||
"HandlerService",
|
||||
"LoggerService",
|
||||
"StatsService"
|
||||
],
|
||||
"services": ["HandlerService", "LoggerService", "StatsService"],
|
||||
"tag": "api"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"port": <port>,
|
||||
"port": 12345, // <port>
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"rewriteAddress": "127.0.0.1"
|
||||
@@ -128,13 +124,13 @@ lsmod | grep wireguard
|
||||
"tag": "wg0",
|
||||
"streamSettings": {
|
||||
"sockopt": {
|
||||
"mark": // <mark>
|
||||
"mark": 255 // <mark>
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"domainStrategy": "UseIPv6"
|
||||
}
|
||||
}, //设置fwmark为<mark>的用户走指定方式”UseIPv6””UseIPv4”
|
||||
}, //设置fwmark为<mark>的用户走指定方式”UseIPv6””UseIPv4”
|
||||
// <--请在不同的方案中选择--> 方案2:sendThrough
|
||||
{
|
||||
"tag": "wg0",
|
||||
@@ -175,9 +171,7 @@ lsmod | grep wireguard
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"inboundTag": [
|
||||
"api"
|
||||
],
|
||||
"inboundTag": ["api"],
|
||||
"outboundTag": "api"
|
||||
},
|
||||
{
|
||||
@@ -189,9 +183,7 @@ lsmod | grep wireguard
|
||||
},
|
||||
{
|
||||
"outboundTag": "blocked",
|
||||
"protocol": [
|
||||
"bittorrent"
|
||||
]
|
||||
"protocol": ["bittorrent"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -125,7 +125,7 @@ Linux 使用`Netfilter`来管理网络,`Netfilter`模型如下:
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
你的服务器配置
|
||||
// 你的服务器配置
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ bash -c "$(curl -L wgcf-cli.vercel.app)"
|
||||
|
||||
2. 运行 `wgcf-cli register` 进行注册,输出:
|
||||
|
||||
```json
|
||||
```
|
||||
❯ wgcf-cli register
|
||||
{
|
||||
"endpoint": {
|
||||
@@ -151,7 +151,7 @@ bash -c "$(curl -L wgcf-cli.vercel.app)"
|
||||
|
||||
在现有路由中新增以下
|
||||
|
||||
```json
|
||||
```
|
||||
{
|
||||
"domain": [
|
||||
"geosite:cn"
|
||||
@@ -195,7 +195,7 @@ bash -c "$(curl -L wgcf-cli.vercel.app)"
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"address": "我的IP",
|
||||
"port": 我的端口,
|
||||
"port": 12345, // 你的端口
|
||||
"id": "我的UUID",
|
||||
"security": "auto"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user