From 3b5e7c06c23be087c7c1bae4b7889941ec7990b8 Mon Sep 17 00:00:00 2001 From: jomertix <150632538+jomertix@users.noreply.github.com> Date: Mon, 21 Jul 2025 04:35:52 +0300 Subject: [PATCH] Make the documentation consistent and fix misspell in the Russian documentation (#725) * DNS: remove the extra square bracket from the unexpectedIPs field * Change the happyEyeballs field from {} to a map --- docs/config/transport.md | 2 +- docs/en/config/transport.md | 2 +- docs/ru/config/dns.md | 2 +- docs/ru/config/transport.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/config/transport.md b/docs/config/transport.md index 79d7082..b5ce525 100644 --- a/docs/config/transport.md +++ b/docs/config/transport.md @@ -820,7 +820,7 @@ PS: 如果有正常上网的域名流量被 AsIs 的 freedom 出站送过来, 当 type 指定为 int 时需要使用十进制数字。 -> `happyEyeballs`: {} +> `happyEyeballs`: map RFC-8305 实现的 happyEyeballs 仅适用于 TCP, 当目标为域名时对它们竞速并选择第一个成功的返回,当 `domainStrategy` 被设置为 `UseIP`/`ForceIP` (包括它们的v4/v6/v4v6版本,但这会使可用的IP列表被缩减到仅剩v4或v6,不推荐这么用) diff --git a/docs/en/config/transport.md b/docs/en/config/transport.md index 7384a59..e7aabde 100644 --- a/docs/en/config/transport.md +++ b/docs/en/config/transport.md @@ -659,7 +659,7 @@ The option value to be set, the example here is set to bbr. Decimal numbers are required when type is specified as int. -> `happyEyeballs`: {} +> `happyEyeballs`: map only TCP, this is RFC-8305 implementation of happyEyeballs, only apply when built-in-dns is used(domainStrategy is `UseIP`/`ForceIP`). 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. diff --git a/docs/ru/config/dns.md b/docs/ru/config/dns.md index d649ba6..c171c74 100644 --- a/docs/ru/config/dns.md +++ b/docs/ru/config/dns.md @@ -305,7 +305,7 @@ DNS-запросы, отправленные модулем DNS, делятся если вы добавите "\*" в этот список, исходные IP-адреса все равно будут возвращены, если ни один IP-адрес не совпадет. -> `unexpectedIPs`: [\[string\] +> `unexpectedIPs`: \[string\] Противоположность `expectedIPs`. IP-адрес считается совпавшим тогда и только тогда, когда он не совпадает ни с одним из диапазонов IP-адресов в списке. Другими словами: `expectedIPs = [0.0.0.0/0, ::/0] - unexpectedIPs.` diff --git a/docs/ru/config/transport.md b/docs/ru/config/transport.md index bef21bd..819a494 100644 --- a/docs/ru/config/transport.md +++ b/docs/ru/config/transport.md @@ -834,7 +834,7 @@ PS: Если трафик домена, например, обычный веб- Если `type` указан как int, значение должно быть десятичным числом. -> `happyEyeballs`: {} +> `happyEyeballs`: map Реализация happyEyeballs по RFC-8305 применима только к TCP. Когда целью является доменное имя, она запускает "гонку" между IP-адресами и выбирает первый, с которым удалось установить соединение. Это работает, когда `domainStrategy` установлен на `UseIP`/`ForceIP` (включая их v4/v6/v4v6 версии, но это сокращает список доступных IP-адресов только до v4 или v6, что не рекомендуется).