Unverified Commit 23080f43 authored by Ahmad Nemati's avatar Ahmad Nemati Committed by GitHub

Update reset.sh

parent 2dd3e3ab
#!/bin/sh
sudo killall mtproto-proxy
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}')"
cd MTProxy/objs/bin
curl -s https://core.telegram.org/getProxySecret -o proxy-secret
curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf
./mtproto-proxy -u nobody -p 8888 -H 443 --aes-pwd proxy-secret proxy-multi.conf -M 2 -P tag -S 00000000000000000000000000000000 --nat-info "$INTERNAL_IP:$IP"
sudo nohup ./run.sh > /dev/null 2>&1 &
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