Reputation: 243
Here is my code:
function get_ip() {
if(isset($_SERVER["HTTP_CF_CONNECTING_IP"])){
return $_SERVER["HTTP_CF_CONNECTING_IP"];
}
else{
return $_SERVER['REMOTE_ADDR'];
}
}
And it used to work fine up until this morning it is returning:
2602:306:cdaf:2da0:e132:a096:5eb:a342
Could anyone explain why?
Upvotes: 1
Views: 303