mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
update
This commit is contained in:
@@ -135,6 +135,14 @@ 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
|
||||
fi
|
||||
|
||||
if [ -f /etc/motd ];then
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||||
export PATH
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
|
||||
DOMAIN="https://gh-proxy.com/"
|
||||
|
||||
DOMAIN=`echo $DOMAIN | sed 's|https://||g'`
|
||||
DOMAIN=`echo $DOMAIN | sed 's|/||g'`
|
||||
echo $DOMAIN
|
||||
Reference in New Issue
Block a user