Commit 5a7b7d50 authored by Administrator's avatar Administrator

Update 1me.sh

parent 68d894c9
#!/bin/sh
IP="$(curl -s -4 "https://digitalresistance.dog/myIp")"
tag="$(curl -s -4 "http://116.202.97.73:3000/tag/2027")"
tag="$(curl -s -4 "http://116.202.97.73:3000/tag/1")"
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 -M 12 -S 00000000000000000000000000000000 -P "$tag" --disable-tcp --allow-skip-dh --aes-pwd proxy-secret proxy-multi.conf --nat-info "$INTERNAL_IP:$IP"
./mtproto-proxy -u nobody -p 8888 -H 443 -M 24 -S 00000000000000000000000000000000 -P "$tag" --disable-tcp --allow-skip-dh --aes-pwd proxy-secret proxy-multi.conf
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