Skip to content

Commit

Permalink
Another tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Witwicki committed Sep 7, 2021
1 parent 2dd48e7 commit 08c9329
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/IpstackService.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public function get()

private function getIpAddress()
{
return $_SERVER['HTTP_CF_CONNECTING_IP'] ?? Craft::$app->getRequest()->getUserIP();
$ip = $_SERVER['HTTP_CF_CONNECTING_IP'] ?? Craft::$app->getRequest()->getUserIP();
Craft::error('DebugIP: ' . $ip);
return $ip;
}
}

0 comments on commit 08c9329

Please sign in to comment.