Parametric proxyAgent does not work well with http proxies. It appears that the proxy agent transforms the endpoint port to the proxy protocol default port.
But here's the weird thing, it works good with socks5 proxy. (it doesn't convert port to 1080)
For example:
proxyAgent: http://192.168.1.1:7890
endpoint url: https://api.telegram.org (:443)
actually visited endpoint url: https://api.telegram.org:80
Install and configure Fndroid/clash_for_windows_pkg 0.20.6
open Allow LAN
configure proxyAgent an http proxy in @koishijs/plugin-adapter-telegram, e.g. http://192.168.1.1:7890
start adapter and see connection in clash
Describe the bug
Parametric
proxyAgent
does not work well with http proxies. It appears that the proxy agent transforms the endpoint port to the proxy protocol default port. But here's the weird thing, it works good with socks5 proxy. (it doesn't convert port to 1080) For example: proxyAgent: http://192.168.1.1:7890 endpoint url: https://api.telegram.org (:443) actually visited endpoint url: https://api.telegram.org:80在适配器插件中配置 http 代理似乎会把访问的端口转换为代理协议的默认端口,比如使用 http://192.168.1.1:7980 作为代理时访问 https://api.telegram.org 会在代理的日志中发现,实际访问的地址为 https://api.telegram.org:80 但是使用 socks://192.168.1.1:7890 就不会出现这个问题,遇到这个问题的小伙伴可以先这样用顶一顶。
Steps to reproduce
Install and configure Fndroid/clash_for_windows_pkg 0.20.6 open
Allow LAN
configureproxyAgent
an http proxy in @koishijs/plugin-adapter-telegram, e.g.http://192.168.1.1:7890
start adapter and see connection in clashExpected behavior
follow endpoint port when using proxy
Screenshots
Versions