vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
15.72k stars 2.93k forks source link

[Feature] 如何让wechat不走代理呢? #3926

Open cjlhll opened 1 week ago

cjlhll commented 1 week ago

Verify Steps

Describe the Feature

wechat部分域名只针对手机有效,可以用规则匹配直连,但是pc端wechat全是ip,ip还总变。有没有什么办法让openclash 能全局让wechat走直连呢?不然都默认走漏网之鱼了,导致发消息,发图片各种都很慢,转圈。

Describe Alternatives

No response

alchauvia1 commented 1 week ago

https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_the_WeChat_server_IP_address.html 由于出口IP及入口IP可能存在变动,建议用户每天请求接口1次,以便于及时更新IP列表。 别人微信直接走cnip了.你不走cn就得自己想想办法了

cjlhll commented 1 week ago

https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_the_WeChat_server_IP_address.html 由于出口IP及入口IP可能存在变动,建议用户每天请求接口1次,以便于及时更新IP列表。 别人微信直接走cnip了.你不走cn就得自己想想办法了

微信是走cn。但是切换到wechat后就不是了。

2eronia commented 4 days ago

应该不是全IP吧。你可以考虑用 nameserver-policy

dns:
    [省略一些配置]
    nameserver-policy:
        "geosite:tencent":
            - "填自己ISP运营商的本地DNS"

我之前用其他梯子软件比如Passwall2,配合两个AdGuardHome分组,其中一个经验就是微信的图片加载,用阿里DNS或者DNSpod都不太行,换成ISP的本地DNS才流畅。

vialib commented 9 hours ago

https://github.com/vialib/ASN-China/blob/main/IP.ASN.China.yaml