mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-12 01:08:24 +03:00
Move code focus
This commit is contained in:
@@ -12,8 +12,8 @@ Blackhole(黑洞)是一个出站数据协议,它会阻碍所有数据的
|
||||
{
|
||||
// ...
|
||||
"protocol": "blackhole",
|
||||
// [!code focus:5]
|
||||
"settings": {
|
||||
// [!code focus:3]
|
||||
"response": {
|
||||
"type": "none"
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@ DNS 是一个出站协议,用于接收由 routing 送入的 DNS 查询,并
|
||||
{
|
||||
// ...
|
||||
"protocol": "dns",
|
||||
// [!code focus:17]
|
||||
"settings": {
|
||||
// [!code focus:15]
|
||||
"rewriteNetwork": "udp",
|
||||
"rewriteAddress": "1.1.1.1",
|
||||
"rewritePort": 53,
|
||||
|
||||
@@ -16,8 +16,8 @@ Freedom 是一个出站协议,可以用来向任意网络发送(正常的)
|
||||
{
|
||||
// ...
|
||||
"protocol": "freedom",
|
||||
// [!code focus:29]
|
||||
"settings": {
|
||||
// [!code focus:27]
|
||||
"domainStrategy": "AsIs",
|
||||
"redirect": "127.0.0.1:3366",
|
||||
"userLevel": 0,
|
||||
|
||||
@@ -20,8 +20,8 @@ HTTP 协议。
|
||||
{
|
||||
// ...
|
||||
"protocol": "http",
|
||||
// [!code focus:12]
|
||||
"settings": {
|
||||
// [!code focus:10]
|
||||
"address": "192.168.108.1",
|
||||
"port": 3128,
|
||||
"user": "my-username",
|
||||
|
||||
@@ -18,8 +18,8 @@ Hysteria 协议的客户端实现。
|
||||
{
|
||||
// ...
|
||||
"protocol": "hysteria",
|
||||
// [!code focus:5]
|
||||
"settings": {
|
||||
// [!code focus:3]
|
||||
"version": 2,
|
||||
"address": "192.168.108.1",
|
||||
"port": 3128
|
||||
|
||||
@@ -12,8 +12,8 @@ Loopback 是个出站数据协议,其作用为将经该出站传出的数据
|
||||
{
|
||||
// ...
|
||||
"protocol": "loopback",
|
||||
// [!code focus:3]
|
||||
"settings": {
|
||||
// [!code focus:1]
|
||||
"inboundTag": "TagUseAsInbound"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,8 +37,8 @@ Shadowsocks 2022 新协议格式提升了性能并带有完整的重放保护,
|
||||
{
|
||||
// ...
|
||||
"protocol": "shadowsocks",
|
||||
// [!code focus:10]
|
||||
"settings": {
|
||||
// [!code focus:8]
|
||||
"email": "love@xray.com",
|
||||
"address": "127.0.0.1",
|
||||
"port": 1234,
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
{
|
||||
// ...
|
||||
"protocol": "socks",
|
||||
// [!code focus:8]
|
||||
"settings": {
|
||||
// [!code focus:6]
|
||||
"address": "127.0.0.1",
|
||||
"port": 1234,
|
||||
"user": "test user",
|
||||
|
||||
@@ -16,8 +16,8 @@ Trojan 被设计工作在正确配置的加密 TLS 隧道
|
||||
{
|
||||
// ...
|
||||
"protocol": "trojan",
|
||||
// [!code focus:7]
|
||||
"settings": {
|
||||
// [!code focus:5]
|
||||
"address": "127.0.0.1",
|
||||
"port": 1234,
|
||||
"password": "password",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -16,8 +16,8 @@ VMess 依赖于系统时间,请确保使用 Xray 的系统 UTC 时间误差在
|
||||
{
|
||||
// ...
|
||||
"protocol": "vmess",
|
||||
// [!code focus:8]
|
||||
"settings": {
|
||||
// [!code focus:6]
|
||||
"address": "127.0.0.1",
|
||||
"port": 37192,
|
||||
"id": "5783a3e7-e373-51cd-8642-c83782b807c5",
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
{
|
||||
// ...
|
||||
"protocol": "wireguard",
|
||||
// [!code focus:20]
|
||||
"settings": {
|
||||
// [!code focus:18]
|
||||
"secretKey": "PRIVATE_KEY",
|
||||
"address": [
|
||||
// optional, default ["10.0.0.1", "fd59:7153:2388:b5fd:0000:0000:0000:0001"]
|
||||
|
||||
Reference in New Issue
Block a user