small readme fixes

This commit is contained in:
Alexander Bersenev
2019-08-19 19:16:36 +05:00
parent 45cb849ca9
commit ea28a7055a
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ Fast and simple to setup mtproto proxy.
1. `git clone -b stable https://github.com/alexbers/mtprotoproxy.git; cd mtprotoproxy` 1. `git clone -b stable https://github.com/alexbers/mtprotoproxy.git; cd mtprotoproxy`
2. *(optional, recommended)* edit *config.py*, set **PORT**, **USERS** and **AD_TAG** 2. *(optional, recommended)* edit *config.py*, set **PORT**, **USERS** and **AD_TAG**
3. `docker-compose up --build -d` (or just `python3 mtprotoproxy.py` if you don't like docker) 3. `docker-compose up -d` (or just `python3 mtprotoproxy.py` if you don't like Docker)
4. *(optional, shows telegram link to set the proxy)* `docker-compose logs` 4. *(optional, shows telegram link to set the proxy)* `docker-compose logs`
## Channel Advertising ## ## Channel Advertising ##

View File

@@ -1751,7 +1751,7 @@ def print_tg_info():
msg = "The default secret {} is used, this is not recommended".format(secret) msg = "The default secret {} is used, this is not recommended".format(secret)
print(msg, flush=True) print(msg, flush=True)
random_secret = "".join(random.choice("0123456789abcdef") for i in range(32)) random_secret = "".join(random.choice("0123456789abcdef") for i in range(32))
print("You can use this random secret instead:", random_secret, flush=True) print("You can change it to this random secret:", random_secret, flush=True)
print_default_warning = True print_default_warning = True
if config.TLS_DOMAIN == "www.google.com": if config.TLS_DOMAIN == "www.google.com":