diff --git a/system/pages/createaccount.php b/system/pages/createaccount.php index 8a75cbe5..f16ed753 100644 --- a/system/pages/createaccount.php +++ b/system/pages/createaccount.php @@ -302,7 +302,9 @@ if($config['account_country_recognize']) { $country_recognized = $country_session; } else { - $info = json_decode(@file_get_contents('http://ipinfo.io/' . get_browser_real_ip() . '/geo'), true); + ini_set('default_socket_timeout', 5); + + $info = json_decode(@file_get_contents('https://ipinfo.io/' . get_browser_real_ip() . '/geo'), true); if(isset($info['country'])) { $country_recognized = strtolower($info['country']); setSession('country', $country_recognized);