Prefer get_browser_real_ip() over REMOTE_ADDR

This commit is contained in:
slawkens
2024-09-08 05:36:33 +02:00
parent 71ef30d35e
commit b5bbae62b0
6 changed files with 8 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ class Visitors
$this->sessionTime = $sessionTime;
$this->cleanVisitors();
$ip = $_SERVER['REMOTE_ADDR'];
$ip = get_browser_real_ip();
if($this->visitorExists($ip))
$this->updateVisitor($ip, $_SERVER['REQUEST_URI']);
else