From 0a3dca90d245e6339e20ba3dfe84fb573ba94fc1 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Mon, 9 Jul 2018 16:31:49 +0300 Subject: [PATCH] Update README --- README.md | 12 ++++++++++++ run-mtg.sh | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ecccd9..980855d 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,18 @@ mtg is an implementation in golang which is intended to be: * **No management WebUI** This is an implementation of simple lightweight proxy. I won't do that. +This proxy supports 2 modes of work: direct connection to Telegram and +promoted channel mode. If you do not need promoted channels, I would +recommend you to go with direct mode: this is way more robust. + +To run proxy in direct mode, all you need to do is just provide a +secret. If you do not provide ADTag as a second parameter, promoted +channels mode won't be activated. + +To get promoted channel, please contact +[@MTProxybot|https://t.me/MTProxybot] and provide generated adtag as a +second parameter. + # How to build diff --git a/run-mtg.sh b/run-mtg.sh index 96d72d3..60459c0 100755 --- a/run-mtg.sh +++ b/run-mtg.sh @@ -21,7 +21,6 @@ docker run \ --sysctl net.ipv4.tcp_congestion_control=bbr \ --sysctl net.ipv4.tcp_fastopen=3 \ --sysctl net.ipv4.tcp_fin_timeout=30 \ - --sysctl net.ipv4.tcp_keepalive_time=1200 \ --sysctl net.ipv4.tcp_max_syn_backlog=4096 \ --sysctl net.ipv4.tcp_max_tw_buckets=5000 \ --sysctl net.ipv4.tcp_mtu_probing=1 \