This commit is contained in:
midoks
2023-02-18 22:44:42 +08:00
parent e5ab03951f
commit f161f24253
2 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ if [ $OSNAME != "macos" ];then
# https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/install.sh
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
cn=$(curl --insecure -fsSL -m 10 https://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -d /www/server/mdserver-web ];then
if [ ! -z "$cn" ];then