From fd673c0d53248946befd1c5d3854d5bc8bfb8cc2 Mon Sep 17 00:00:00 2001 From: patterniha <71074308+patterniha@users.noreply.github.com> Date: Thu, 26 Jun 2025 13:35:47 +0330 Subject: [PATCH] Update transport.md --- docs/en/config/transport.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/en/config/transport.md b/docs/en/config/transport.md index b560f27..c6331af 100644 --- a/docs/en/config/transport.md +++ b/docs/en/config/transport.md @@ -673,9 +673,9 @@ when `dialerProxy` is set `happyEyeballs` is not applied, and only a random IP w ```json "happyEyeballs": { "tryDelayMs": 250, - "prioritizeIPv6": false, + "prioritizeIPv6": false, + "interleave": 1, "maxConcurrentTry": 4, - "interleave": 1 } ``` @@ -684,14 +684,20 @@ when `dialerProxy` is set `happyEyeballs` is not applied, and only a random IP w delay time between each attempt in millisecond, RFC-8305 recommend `250`, default is `0`. (if it is `0`, happy-eyeballs is disabled) -> `interleave`: number - - indicate "First Address Family count" in RFC-8305, default is 1. - > `prioritizeIPv6`: bool indicate "First Address Family" in RFC-8305, default is false(= prioritizeIPv4) +> `interleave`: number + + indicate "First Address Family count" in RFC-8305, default is 1. + +for example suppose our IP-list is [ip4-1, ip4-2, ip4-3, ip4-4, ip6-1, ip6-2, ip6-3, ip6-4] +when interleave is 1 and prioritizeIPv6 is false, the sorted-ip-list is: +[ip4-1, ip6-1, ip4-2, ip6-2, ip4-3, ip6-3, ip4-4, ip6-4] +and when for example interleave is 2 and prioritizeIPv6 is true: +[ip6-1, ip6-2, ip4-1, ip4-2, ip6-3, ip6-4, ip4-3, ip4-4] + > `maxConcurrentTry`: number maximum concurrent attempt (this is only maximum and in most cases our concurrent attempts is less, unless all connection fail to connect) also we can always have a maximum of concurrent-attempt as many IPs as we have, and this option is useful when the number of IPs is too high, and we want to control the number of concurrent-attempts, default is 4. if it is 0, happy-eyeballs is disabled.