use https

This commit is contained in:
slawkens 2024-12-20 22:42:46 +01:00
parent 783d96fc65
commit da1816cc13

View File

@ -333,7 +333,7 @@ if(setting('core.account_country_recognize')) {
else { else {
ini_set('default_socket_timeout', 5); ini_set('default_socket_timeout', 5);
$info = json_decode(@file_get_contents('http://ipinfo.io/' . get_browser_real_ip() . '/geo'), true); $info = json_decode(@file_get_contents('https://ipinfo.io/' . get_browser_real_ip() . '/geo'), true);
if(isset($info['country'])) { if(isset($info['country'])) {
$country_recognized = strtolower($info['country']); $country_recognized = strtolower($info['country']);
setSession('country', $country_recognized); setSession('country', $country_recognized);