Unverified Commit c2d26223 authored by Ahmad Nemati's avatar Ahmad Nemati Committed by GitHub

Update install.sh

parent 3301038b
#!/bin/sh
apt-get update
apt install git curl build-essential libssl-dev zlib1g-dev
git clone https://github.com/TelegramMessenger/MTProxy
cd MTProxy
make && cd objs/bin
curl -s https://core.telegram.org/getProxySecret -o proxy-secret
curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf
IP="$(curl -s -4 "https://digitalresistance.dog/myIp")"
INTERNAL_IP="$(ip -4 route get 8.8.8.8 | grep '^8\.8\.8\.8\s' | grep -Po 'src\s+\d+\.\d+\.\d+\.\d+' | awk '{print $2}')"
./mtproto-proxy -u nobody -p 8888 -H 443 -S 00000000000000000000000000000000 --aes-pwd proxy-secret proxy-multi.conf -M 2 -P 0f533a621d7df9446288ce3a415c4c6d --nat-info "$INTERNAL_IP:$IP"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment