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 \