Closed c332030 closed 2 years ago
没有在v2rayn 里发现 httpdns 的请求日志
2022/07/06 15:07:24 127.0.0.1:59932 accepted http://182.254.118.119/d?dn=80c228514177bf94d6216e5c9e9b638d5c179fc7b71c7b76&id=2&ttl=1&clientip=1&type=a [http -> proxy]
企业微信,解析IP的时候,用的是IP地址,这个地址是使用代理去访问的,所以拿到的是代理的ip
问题是上传图片的地址也是IP,都添加在直连之内,好像会很好,不知道有没有好心人整理一下,腾讯的ip
2022-07-06 15:07:22 fetch bgp ip list ok, url: https://wwcdn.weixin.qq.com/zh_CN/app_bgp.js, ip list:[182.254.116.117,182.254.118.119], use httpdns: 1 企业微信在启动的时候,会先往这个接口发送一个请求,获取服务器ip,然后往这个ip中通过访问请求地址,来判断用户的ip地址
2022/07/06 15:07:24 127.0.0.1:59932 accepted http://182.254.118.119/d?dn=80c228514177bf94d6216e5c9e9b638d5c179fc7b71c7b76&id=2&ttl=1&clientip=1&type=a [http -> proxy]
企业微信,解析IP的时候,用的是IP地址,这个地址是使用代理去访问的,所以拿到的是代理的ip
规则l里有条这个,为啥没有生效,是不全吗
这个不清楚
这个不清楚
谢啦,我先写把这两个 ip 写死在 direct 里
我错了,企业微信访问国内一样发不出图片。真是受够了,文字出去了图片没出去
把这两个ip改为直连就没事了,企业微信是真的狗啊
如下日志,企业微信域名(i.work.weixin.qq.com)的策略是 direct,但是企业微信通过内部 httpdns 解析时是通过 proxy 解析的,local_ip 是我服务器的 ip,httpdns 解析到的 ip 在美国,导致企业微信图片经常发送慢或者失败
客户端是 v2rayN,路由策略是:https://github.com/2dust/v2rayCustomRoutingList/blob/master/custom_routing_rules_whitelist
预期行为
企业微信域名 direct 策略时访问
国内
服务器实际行为
企业微信域名 direct 策略时访问
美国
服务器复现方法
日志信息,位置在当前目录下的guiLogs
v2ray 日志
企业微信日志 C:\Users\Administrator\AppData\Roaming\Tencent\WXWork\Log\HttpDns
环境信息(客户端请升级至最新正式版)
额外信息(可选)