mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
Update install_dev.sh
This commit is contained in:
@@ -136,13 +136,15 @@ function ChooseProxyURL(){
|
||||
if [ "$LOCAL_ADDR" != "common" ];then
|
||||
ChooseProxyURL
|
||||
|
||||
DOMAIN=`echo $HTTP_PREFIX | sed 's|https://||g'`
|
||||
DOMAIN=`echo $DOMAIN | sed 's|/||g'`
|
||||
ping -c 3 $DOMAIN > /dev/null 2>&1
|
||||
if [ "$?" != "0" ];then
|
||||
echo "无效代理地址:${DOMAIN}"
|
||||
exit
|
||||
fi
|
||||
if [ "$DOMAIN" != "http://" ];then
|
||||
DOMAIN=`echo $HTTP_PREFIX | sed 's|https://||g'`
|
||||
DOMAIN=`echo $DOMAIN | sed 's|/||g'`
|
||||
ping -c 3 $DOMAIN > /dev/null 2>&1
|
||||
if [ "$?" != "0" ];then
|
||||
echo "无效代理地址:${DOMAIN}"
|
||||
exit
|
||||
fi
|
||||
if
|
||||
fi
|
||||
|
||||
if [ -f /etc/motd ];then
|
||||
|
||||
Reference in New Issue
Block a user