320

解决使用 OpenClash 时风暴英雄无法连接服务器问题

 2 years ago
source link: https://azhuge233.com/%e8%a7%a3%e5%86%b3%e4%bd%bf%e7%94%a8-openclash-%e6%97%b6%e9%a3%8e%e6%9a%b4%e8%8b%b1%e9%9b%84%e6%97%a0%e6%b3%95%e8%bf%9e%e6%8e%a5%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%97%ae%e9%a2%98/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
解决使用 OpenClash 时风暴英雄无法连接服务器问题

19-11-06更新:放弃 OpenClash 了,因为总会出现这样那样的网络问题。

即使有添加DNS白名单的方法,但一个个添加域名实在耗费精力,而且不知道什么时候就抽风出 DNS 问题——同一个域名有时候可以正常解析,有时无法解析,导致使用体验很差。

有时还会出现网络断连问题,不知道原因。路由器掌管家庭所有设备的网络,还是选择比较成熟稳定的方案为好。

在使用 OpenClash 并切换到 Fake-IP 模式后,暴雪游戏《风暴英雄》在登录账号时会提示无法连接服务器,切换到 Redir-Host (兼容)模式后恢复正常。其他暴雪游戏(《守望先锋》)并没有出现无法连接服务器的情况。

  • 首先用 Fiddler 抓了下包,发现风暴英雄在连接类似 xxx.xxx.battlenet.com.cn 的 URL 时出现503错误。
  • 然后查看了 Clash Dashboard 的连接记录,发现 xxx.xxx.battlenet.com.cn 都被正确的划分到了直连组中,排除规则错误的可能。
  • 尝试将模式切换为 Redir-Host,发现能够正常登录。
  • 之后查看了 OpenClash 官方 Wiki,发现 Fake-IP 模式和 Redir-Host 模式的差别在于 DNS 的请求方式,Fake-IP 为了加快响应速度,会预先返回一个保留地址,可能是无法正常登录的原因——风暴英雄拿到立即返回的保留地址后就直接进行连接,导致 xxx.xxx.battlenet.com.cn 的请求 503 错误,无法正常登录。解决使用 OpenClash 时风暴英雄无法连接服务器问题

OpenClash 也有现成的解决方案,在 【DNS 设置】中打开 【高级设置】,在 Fake-IP 域名黑名单中填入暴雪的登录用域名 battlenet.com.cn 即可解决使用 OpenClash 时风暴英雄无法连接服务器问题


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK