Add files via upload

This commit is contained in:
mmmdbybyd 2018-11-24 14:49:11 +08:00 committed by GitHub
parent fa8ad6926a
commit b8ddb3bd25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ git clone https://github.com/mmmdbybyd/SpecialProxy.git
[ ! -d SpecialProxy ] && Exit "\033[41;37mdownload SpecialProxy source code failed\033[0m" [ ! -d SpecialProxy ] && Exit "\033[41;37mdownload SpecialProxy source code failed\033[0m"
cd SpecialProxy cd SpecialProxy
make || Exit "\033[41;37mcompile tinyproxy failed\033[0m" make || Exit "\033[41;37mcompile tinyproxy failed\033[0m"
cp SpecialProxy sp dnsip=`grep nameserver /etc/resolv.conf | grep -Eo '[1-9]{1,3}[0-9]{0,2}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -n 1`
./sp -l $server_port -p Meng && \ ./SpecialProxy -l $server_port -p Meng -d ${dnsip:-114.114.114.114} && \
Exit "\033[32mSpeciaoProxy is running.\033[0m" || \ Exit "\033[32mSpeciaoProxy is running.\033[0m" || \
Exit "\033[41;37mSpeciaoProxy is stopping.\033[0m" Exit "\033[41;37mSpeciaoProxy is stopping.\033[0m"