Skip to content

Commit

Permalink
bump version number and add new build
Browse files Browse the repository at this point in the history
  • Loading branch information
pbojinov committed Oct 29, 2018
1 parent 955df99 commit 915d984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ function getClientIp(req) {

if (is.ip(req.headers['cf-connecting-ip'])) {
return req.headers['cf-connecting-ip'];
} // Fastly and Firebase hosting header (When forwared to cloud function)


if (is.ip(req.headers['fastly-client-ip'])) {
return req.headers['fastly-client-ip'];
} // Akamai and Cloudflare: True-Client-IP.


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "request-ip",
"version": "2.1.1",
"version": "2.1.3",
"description": "A small node.js module to retrieve the request's IP address",
"keywords": [
"request ip",
Expand Down

0 comments on commit 915d984

Please sign in to comment.