telegram-download-daemon icon indicating copy to clipboard operation
telegram-download-daemon copied to clipboard

How do I get the docker creation process to use a proxy?

Open zj1123581321 opened this issue 2 years ago • 4 comments

Since I am in China, Telegram needs a proxy.

When I create it using docker, it keeps prompting me with a timeout. image

I tried to modify the sock5 proxy in telegram-download-daemon.py, but I still can't get through. image

Is there anything I can do? Thanks a lot :)

zj1123581321 avatar Jun 11 '22 07:06 zj1123581321

Well, I have not tested this daemon with a proxy, but I think you are using a SOCKS5 proxy with an http url.

Try this: proxy = (socks.SOCKS5, '192.168.31.218', 7890)

Check your proxy type as well. Could it be an http proxy?

alfem avatar Jun 11 '22 09:06 alfem

Since I am in China, Telegram needs a proxy.

When I create it using docker, it keeps prompting me with a timeout. image

I tried to modify the sock5 proxy in telegram-download-daemon.py, but I still can't get through. image

Is there anything I can do? Thanks a lot :)

Have you solved this problem ?

hugh-zhan9 avatar Aug 22 '22 03:08 hugh-zhan9

Please, check #90

Recent docker image supports proxy configuration.

alfem avatar Aug 22 '22 06:08 alfem

thinks!

hugh-zhan9 avatar Aug 22 '22 07:08 hugh-zhan9