From b69464dfe920ae74245ecc8842e67928f85c079b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 3 Sep 2022 13:02:41 +0800 Subject: [PATCH] Update documentation for dial fields --- docs/configuration/shared/dial.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/configuration/shared/dial.md b/docs/configuration/shared/dial.md index 020cb39f..45cb3e07 100644 --- a/docs/configuration/shared/dial.md +++ b/docs/configuration/shared/dial.md @@ -16,12 +16,14 @@ ### Fields +| Field | Available Context | +|-----------------------------------------------------------------------------------|-------------------| +| `bind_interface` /`bind_address` /`routing_mark` /`reuse_addr` /`connect_timeout` | `detour` not set | + #### detour The tag of the upstream outbound. -Other dial fields will be ignored when enabled. - #### bind_interface The network interface to bind to. @@ -57,13 +59,16 @@ One of `prefer_ipv4` `prefer_ipv6` `ipv4_only` `ipv6_only`. If set, the requested domain name will be resolved to IP before connect. -`dns.strategy` will be used if empty. +| Outbound | Effected domains | Fallback Value | +|----------|--------------------------|-------------------------------------------| +| `direct` | Domain in request | Take `inbound.domain_strategy` if not set | +| others | Domain in server address | / | #### fallback_delay The length of time to wait before spawning a RFC 6555 Fast Fallback connection. -That is, is the amount of time to wait for IPv6 to succeed before assuming -that IPv6 is misconfigured and falling back to IPv4 if `prefer_ipv4` is set. +That is, is the amount of time to wait for connection to succeed before assuming +that IPv4/IPv6 is misconfigured and falling back to other type of addresses. If zero, a default delay of 300ms is used. -Only take effect when `domain_strategy` is `prefer_ipv4` or `prefer_ipv6`. \ No newline at end of file +Only take effect when `domain_strategy` is set. \ No newline at end of file