9seconds 7 лет назад
Родитель
Сommit
0a3dca90d2
2 измененных файлов: 12 добавлений и 1 удалений
  1. 12
    0
      README.md
  2. 0
    1
      run-mtg.sh

+ 12
- 0
README.md Просмотреть файл

38
 * **No management WebUI**
38
 * **No management WebUI**
39
   This is an implementation of simple lightweight proxy. I won't do that.
39
   This is an implementation of simple lightweight proxy. I won't do that.
40
 
40
 
41
+This proxy supports 2 modes of work: direct connection to Telegram and
42
+promoted channel mode. If you do not need promoted channels, I would
43
+recommend you to go with direct mode: this is way more robust.
44
+
45
+To run proxy in direct mode, all you need to do is just provide a
46
+secret. If you do not provide ADTag as a second parameter, promoted
47
+channels mode won't be activated.
48
+
49
+To get promoted channel, please contact
50
+[@MTProxybot|https://t.me/MTProxybot] and provide generated adtag as a
51
+second parameter.
52
+
41
 
53
 
42
 # How to build
54
 # How to build
43
 
55
 

+ 0
- 1
run-mtg.sh Просмотреть файл

21
     --sysctl net.ipv4.tcp_congestion_control=bbr \
21
     --sysctl net.ipv4.tcp_congestion_control=bbr \
22
     --sysctl net.ipv4.tcp_fastopen=3 \
22
     --sysctl net.ipv4.tcp_fastopen=3 \
23
     --sysctl net.ipv4.tcp_fin_timeout=30 \
23
     --sysctl net.ipv4.tcp_fin_timeout=30 \
24
-    --sysctl net.ipv4.tcp_keepalive_time=1200 \
25
     --sysctl net.ipv4.tcp_max_syn_backlog=4096 \
24
     --sysctl net.ipv4.tcp_max_syn_backlog=4096 \
26
     --sysctl net.ipv4.tcp_max_tw_buckets=5000 \
25
     --sysctl net.ipv4.tcp_max_tw_buckets=5000 \
27
     --sysctl net.ipv4.tcp_mtu_probing=1 \
26
     --sysctl net.ipv4.tcp_mtu_probing=1 \

Загрузка…
Отмена
Сохранить