Skip to content

Commit

Permalink
fix ndf
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovct committed Oct 1, 2018
1 parent 253066c commit b304d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ private function httpRequest($msg) {

$si=(array)json_decode($msg->sender_info,true);

$si['remote_addr'] = $_SERVER['REMOTE_ADDR'];
if(isset($_SERVER['REMOTE_ADDR'])) $si['remote_addr'] = $_SERVER['REMOTE_ADDR'];
if(isset($_SERVER['X_FORWARDED_FOR'])) $msg->x_forwarded_for = $_SERVER['X_FORWARDED_FOR'];
if(isset($_SERVER['X_REAL_IP'])) $msg->x_real_ip = $_SERVER['X_REAL_IP'];

Expand Down

0 comments on commit b304d04

Please sign in to comment.