iyear / tdl

📥 A Telegram toolkit written in Golang
https://docs.iyear.me/tdl
GNU Affero General Public License v3.0
4.53k stars 448 forks source link

[Bug] can't login under pure ipv4 network with socks5 proxy #754

Open liooge opened 1 month ago

liooge commented 1 month ago

Describe the bug

it not works on armbian arm64 device, under ipv4 pure network, when set socks5 proxy , in log , it try to connect ipv6 addir

"[2001:67c:4e8:f002::a]:443", "error": "dial error: dial tcp6 [2001:67c:4e8:f002::a]:443: connect: network is unreachable"

To Reproduce

export TDL_PROXY=socks5://x.x.x.x:11080 tdl login -T code

Expected behavior

login success

Version

Version: 0.17.5 Commit: ec66ab1 Date: 2024-10-03T04:38:23Z

go1.21.13 linux/arm

Which OS are you running tdl on?

Linux

Additional context

No response

saturn99 commented 1 month ago

https://github.com/iyear/tdl/issues/264