TelegramMessenger / MTProxy

5.01k stars 832 forks source link

Display different proxy sponsor for different secret on 1 VPS #164

Open denisemenov opened 6 years ago

denisemenov commented 6 years ago

I have a VPS with 3 secret keys and different domains with subdomains for different user groups:

I registered all servers using @mtproxybot and added the tags to the run command. But when I change the proxy server in the Telegram app, the channel does not change.

Systemd service file:

[Unit]
Description=MTProxy
After=network.target

[Service]
Type=simple
ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -P  938e02*** -S d0e063*** -P  b0c9bd*** -S 5d6373*** -P  b8b80*** --aes-pwd /root/MTProxy/proxy-secret /root/MTProxy/proxy-multi.conf -M 1
Restart=on-failure

[Install]
WantedBy=multi-user.target

I tried to use sequential tagging, but it did not change channels in app:

ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -S d0e063*** -S 5d6373*** -P  938e02*** -P  b0c9bd*** -P  b8b80*** --aes-pwd /root/MTProxy/proxy-secret

I thought that it can be used with multiple "-P", like it it used with multiple "-S", but Telegram always shows only one sponsored channel for all groups -first on the list. Is I need to use different VPS to display different channels for different groups, or did I do something wrong?

iqdoctor commented 6 years ago

nice feature request. now i rus separate instance per each tag.

dubrovka commented 6 years ago

[]()

sae13 commented 6 years ago

👀

Alirezaies commented 4 years ago

+1