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

Update 1me.sh

parent a165f6cb
#!/bin/sh #!/bin/sh
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 ..
cd MTProxy/objs/bin cd MTProxy/objs/bin
curl -s https://core.telegram.org/getProxySecret -o proxy-secret curl -s https://core.telegram.org/getProxySecret -o proxy-secret
curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf
./mtproto-proxy -u nobody -p 8888 -H 88 -M 8 -S 00000000000000000000000000000000 -P 41f8a1dcae54a63faff230fb599c9cdd --disable-tcp --allow-skip-dh --aes-pwd proxy-secret proxy-multi.conf ./mtproto-proxy -u nobody -p 8888 -H 443 -M 1 -S 00000000000000000000000000000000 -P 41f8a1dcae54a63faff230fb599c9cdd --disable-tcp --allow-skip-dh --aes-pwd proxy-secret proxy-multi.conf --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