Skip to content

Commit bd4e2e2

Browse files
committed
Change the happyEyeballs field from {} to a map
1 parent 42d991b commit bd4e2e2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/config/transport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ PS: 如果有正常上网的域名流量被 AsIs 的 freedom 出站送过来,
820820

821821
当 type 指定为 int 时需要使用十进制数字。
822822

823-
> `happyEyeballs`: {}
823+
> `happyEyeballs`: map
824824
825825
RFC-8305 实现的 happyEyeballs 仅适用于 TCP, 当目标为域名时对它们竞速并选择第一个成功的返回,当 `domainStrategy` 被设置为 `UseIP`/`ForceIP` (包括它们的v4/v6/v4v6版本,但这会使可用的IP列表被缩减到仅剩v4或v6,不推荐这么用)
826826

docs/en/config/transport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ The option value to be set, the example here is set to bbr.
659659

660660
Decimal numbers are required when type is specified as int.
661661

662-
> `happyEyeballs`: {}
662+
> `happyEyeballs`: map
663663
664664
only TCP, this is RFC-8305 implementation of happyEyeballs, only apply when built-in-dns is used(domainStrategy is `UseIP`/`ForceIP`).
665665
When we have multiple IPs, this algorithm tries to connect to each IP, the first-stablished-connection is winner connection and selected for sending/receiving data.

docs/ru/config/transport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ PS: Если трафик домена, например, обычный веб-
834834

835835
Если `type` указан как int, значение должно быть десятичным числом.
836836

837-
> `happyEyeballs`: {}
837+
> `happyEyeballs`: map
838838
839839
Реализация happyEyeballs по RFC-8305 применима только к TCP. Когда целью является доменное имя, она запускает "гонку" между IP-адресами и выбирает первый, с которым удалось установить соединение. Это работает, когда `domainStrategy` установлен на `UseIP`/`ForceIP` (включая их v4/v6/v4v6 версии, но это сокращает список доступных IP-адресов только до v4 или v6, что не рекомендуется).
840840

0 commit comments

Comments
 (0)