Skip to content

Commit

Permalink
add empty string if REMOTE_ADDR not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
melbahja committed Jun 13, 2018
1 parent 9a0bc43 commit ccbd3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/ServerRequest.php
Expand Up @@ -614,7 +614,7 @@ public function clientIp()
}
}

return $this->getEnv('REMOTE_ADDR');
return $this->getEnv('REMOTE_ADDR', '');
}

/**
Expand Down

0 comments on commit ccbd3ac

Please sign in to comment.