-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为 wireguard 出站添加解析偏好设置 #2014
为 wireguard 出站添加解析偏好设置 #2014
Conversation
rui0572
commented
May 1, 2023
•
edited
Loading
edited
@rui0572 所以什么时候xray可以给每个出站都单独配置strategy() |
大佬太爱你了 |
感谢大佬 这个功能非常实用 我的建议是跟 freedom 出站的配置统一一下: |
我看过 freedom 的代码,它 "UseIPv6" 的逻辑是使用内置 DNS 仅 IPv6Enable 进行解析,如果解析失败就用域名直接 dial 了. 此时解析由系统进行,偏好受 gai.conf 控制,无法保证一定会 fallback 到 IPv4. (内置 DNS 解析不出 IPv6 可能是有意为之) 该选项的行为和 domainStrategy 并不一致,是完全由内置 DNS 解析的真 IPv6 优先,所以使用了新的名称.
|
what do you think @RPRX? |
备注: 默认值 现在的默认行为与 freedom 出站配置
|
现在 freedom 设置了 UseIPv6 但行为是 prefer 的话是反直觉的,所以,或许把它们的行为都改成解析不出 IPv6 就 block? |
就是说统一配置,统一行为(比如解析不出 IPv6 就 block) |
换句话说,现在 freedom 的 UseIPv6 改名叫 PreferIPv6 更合适 |
然后这个 PR 也叫 domainStrategy,但只支持上述三项,默认 |
@rui0572 看代码这个 PR 设置了 v6 的话,如果没 v6 就 block?我觉得需要加两项真的 Prefer,可能更有用一些,比如 |
目前 resolveStrategy 的行为是
我想它正是
PS.
PPS. 发现 freedom 的 UseIPv6 仍然能够连接 v4Only 域名时也很意外.
|
This comment was marked as outdated.
This comment was marked as outdated.
@rui0572 好的,我们改为给 domainStrategy 加这五项吧: 这样命名比较直观, (freedom 再加 |
|
好耶 |
名字改了,freedom 的 全部十一项 |
@rui0572 应该不需要那么多 alias。。。此外麻烦也改一下 freedom(另开一个 PR) |
d046cb2
to
0a5ded5
Compare
c73e413
to
a4e80f0
Compare
感谢 rui0572 和大家 先合了 #2717 |
* 增加 wireguard 出站选项 `resolveStrategy`. * They become a part of you. * 移除不必要的选项别名. * aliases NG. * 微调. --------- Co-authored-by: rui0572 <125641819+rui0572@users.noreply.github.com>
提一嘴 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
每个需要强制解析域名的地方都可以分别配置 domainStrategy 应该没有问题 主要是统一并简化语法。。 |