mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-06 16:36:48 +02:00
Merge branch 'v2.1.1' of github.com:usmannasir/cyberpanel into v2.1.1
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user