From 32247561cf54c643a132ae912cfd4a86b28ca3ad Mon Sep 17 00:00:00 2001 From: qtwrk Date: Sat, 3 Apr 2021 21:46:31 +0200 Subject: [PATCH] Update cyberpanel.sh --- cyberpanel.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 1345ef1bd..861d4bfec 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -199,10 +199,13 @@ Server_IP=$(curl --silent --max-time 30 -4 https://cyberpanel.sh/?ip) echo -e "\nChecking server location...\n" -Server_Country=$(curl --silent --max-time 10 -4 https://cyberpanel.sh/?country) -if [[ ${#Server_Country} != "2" ]] ; then - Server_Country="Unknow" -fi +if [[ "$Server_Country" != "CN" ]] ; then + Server_Country=$(curl --silent --max-time 10 -4 https://cyberpanel.sh/?country) + if [[ ${#Server_Country} != "2" ]] ; then + Server_Country="Unknow" + fi +fi +#to avoid repeated check_ip called by debug_log2 to break force mirror for CN servers. if [[ "$Debug" = "On" ]] ; then Debug_Log "Server_IP" "$Server_IP"