Skip to content

Commit beac18d

Browse files
authored
完善 outbound.md
补充了 `targetStrategy` 的相关说明。
1 parent 8fbb377 commit beac18d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/config/outbound.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"tag": "another-outbound-tag",
2424
"transportLayer": false
2525
},
26-
"mux": {}
26+
"mux": {},
27+
"targetStrategy": "AsIs"
2728
}
2829
]
2930
}
@@ -72,6 +73,20 @@
7273
7374
Mux 相关的具体配置。
7475

76+
> `targetStrategy`: "AsIs" | "UseIP" | "UseIPv6v4" | "UseIPv6" | "UseIPv4v6" | "UseIPv4" | "ForceIP" | "ForceIPv6v4" | "ForceIPv6" | "ForceIPv4v6" | "ForceIPv4"
77+
78+
最终目标地址的域名解析策略。例如,目标地址是 `google.com`,这个策略会决定由谁解析域名 (代理服务器还是[内置 DNS 服务器](./dns.md)),并如何对待解析出来的 IPv4 和 IPv6。
79+
80+
默认值为 “AsIs”。所有参数含义均约等于 [sockopt](./transport.md#sockoptobject) 中的 domainStrategy。
81+
82+
::: danger
83+
除非您需要使用自己可信的 DNS 服务器,否则不建议更改此设置。
84+
:::
85+
86+
::: tip
87+
如果您出站代理服务器的地址是域名,并需要为这个域名本身选择解析策略,则应配置 [sockopt](./transport.md#sockoptobject) 中的 domainStrategy。
88+
:::
89+
7590
### ProxySettingsObject
7691

7792
```json

0 commit comments

Comments
 (0)