alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.59k stars 351 forks source link

URL instead of IP + Cloudflare #219

Open apair opened 4 years ago

apair commented 4 years ago

Hey, Is it possible to add pointed URL like https://example.com instead of IP so the generated URL become like : tg://proxy?server=https://example.com &port=999&secret=dd14d99479xxxxxxxxxx98aaa332b6b48f instead of : tg://proxy?server=115.xxx.xxx.487&port=999&secret=dd14d99479xxxxxxxxxx98aaa332b6b48f

surbiks commented 4 years ago

yes its possible you can use domain

apair commented 4 years ago

yes its possible you can use domain

I have tried but it does not work. It gets a timeout.

surbiks commented 4 years ago

use domain without http or https like sample.com tg://proxy?server=example.com&port=999&secret=dd14d99479xxxxxxxxxx98aaa332b6b48f

apair commented 4 years ago

Now it works! many thanks

apair commented 4 years ago

@golil Do you have any idea whether possible to goes behind Cloudflare or not?

surbiks commented 4 years ago

@golil Do you have any idea whether possible to goes behind Cloudflare or not?

No, sorry :(

erfantkerfan commented 4 years ago

Its not possible to get behind cloudflare I have tested many different approaches

apair commented 4 years ago

Its not possible to get behind cloudflare I have tested many different approaches

I've just found this post on Cloudflare forum that may help:

And in summary, Cloudflare does not allow you to pass mtproro data.