在代理后测速
#582
Replies: 2 comments 4 replies
-
HTTP代理永远是代理服务器查询DNS,本地的host或--resolve均不生效。 你使用HTTP代理的话,cfst对你本地主机毫无意义。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
补充一下背景。这个需求可能挺小众的。 对于托管在 cloudflare 上的被 sni 阻断的网站,可以使用一些神奇的方式(例如 tls 分片)来访问,通常使用本地 http 代理实现。当时发现并非所有 cloudflare 网站对 tls 分片支持良好(实际上大多数都挺好的)。因此想测速时测出在 tls 分片的情况下的最优 ip。因而有了如题的需求。 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我需要在 http 代理后使用 CloudflareSpeedTest 测速,但是 CloudflareSpeenTest 在连接代理时似乎使用的是域名,会被代理再查询一遍 dns,然后把 ip 替换掉。请问各位有什么好的解决方案吗?
我有一个想法就是连接代理时直接使用
ip:port
,而不是直接使用域名,不过要实现起来可能有点复杂。或许可以到 golang 里开个 issue 看看能不能想加一个类似curl
中--resolve
的东西?似乎只要在标准库里的connectMethod
部分改一下就行了。或者,可以考虑测速时将 url 中的域名替换成 ip,再设置
Host
头字段?Beta Was this translation helpful? Give feedback.
All reactions