{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/14","id":62415912,"html_url":"https://github.com/nfriedly/express-rate-limit/pull/14","diff_url":"https://github.com/nfriedly/express-rate-limit/pull/14.diff","patch_url":"https://github.com/nfriedly/express-rate-limit/pull/14.patch","issue_url":"https://api.github.com/repos/nfriedly/express-rate-limit/issues/14","number":14,"state":"closed","locked":false,"title":"customize how IP is obtained from req object","user":{"login":"yufeiliu","id":880240,"avatar_url":"https://avatars.githubusercontent.com/u/880240?v=3","gravatar_id":"","url":"https://api.github.com/users/yufeiliu","html_url":"https://github.com/yufeiliu","followers_url":"https://api.github.com/users/yufeiliu/followers","following_url":"https://api.github.com/users/yufeiliu/following{/other_user}","gists_url":"https://api.github.com/users/yufeiliu/gists{/gist_id}","starred_url":"https://api.github.com/users/yufeiliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufeiliu/subscriptions","organizations_url":"https://api.github.com/users/yufeiliu/orgs","repos_url":"https://api.github.com/users/yufeiliu/repos","events_url":"https://api.github.com/users/yufeiliu/events{/privacy}","received_events_url":"https://api.github.com/users/yufeiliu/received_events","type":"User","site_admin":false},"body":"`req.ip` does not reliably represent client's IP address in load-balanced environments like Google App Engine and Heroku. This change allows users to define how to retrieve IP address from a request object, so they could use a custom header field if needed.","created_at":"2016-03-10T16:26:18Z","updated_at":"2016-03-10T20:16:33Z","closed_at":"2016-03-10T20:16:33Z","merged_at":null,"merge_commit_sha":"8246c4d821240f9da990ac2e2b8bcb0b4c4271ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/14/commits","review_comments_url":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/14/comments","review_comment_url":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nfriedly/express-rate-limit/issues/14/comments","statuses_url":"https://api.github.com/repos/nfriedly/express-rate-limit/statuses/4865e142cdd3ea9d1d4312166a11c3937ffbb98e","head":{"label":"yufeiliu:patch-1","ref":"patch-1","sha":"4865e142cdd3ea9d1d4312166a11c3937ffbb98e","user":{"login":"yufeiliu","id":880240,"avatar_url":"https://avatars.githubusercontent.com/u/880240?v=3","gravatar_id":"","url":"https://api.github.com/users/yufeiliu","html_url":"https://github.com/yufeiliu","followers_url":"https://api.github.com/users/yufeiliu/followers","following_url":"https://api.github.com/users/yufeiliu/following{/other_user}","gists_url":"https://api.github.com/users/yufeiliu/gists{/gist_id}","starred_url":"https://api.github.com/users/yufeiliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufeiliu/subscriptions","organizations_url":"https://api.github.com/users/yufeiliu/orgs","repos_url":"https://api.github.com/users/yufeiliu/repos","events_url":"https://api.github.com/users/yufeiliu/events{/privacy}","received_events_url":"https://api.github.com/users/yufeiliu/received_events","type":"User","site_admin":false},"repo":{"id":53599299,"name":"express-rate-limit","full_name":"yufeiliu/express-rate-limit","owner":{"login":"yufeiliu","id":880240,"avatar_url":"https://avatars.githubusercontent.com/u/880240?v=3","gravatar_id":"","url":"https://api.github.com/users/yufeiliu","html_url":"https://github.com/yufeiliu","followers_url":"https://api.github.com/users/yufeiliu/followers","following_url":"https://api.github.com/users/yufeiliu/following{/other_user}","gists_url":"https://api.github.com/users/yufeiliu/gists{/gist_id}","starred_url":"https://api.github.com/users/yufeiliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufeiliu/subscriptions","organizations_url":"https://api.github.com/users/yufeiliu/orgs","repos_url":"https://api.github.com/users/yufeiliu/repos","events_url":"https://api.github.com/users/yufeiliu/events{/privacy}","received_events_url":"https://api.github.com/users/yufeiliu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yufeiliu/express-rate-limit","description":"Basic rate-limiting middleware for express","fork":true,"url":"https://api.github.com/repos/yufeiliu/express-rate-limit","forks_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/forks","keys_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/teams","hooks_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/hooks","issue_events_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/issues/events{/number}","events_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/events","assignees_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/assignees{/user}","branches_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/branches{/branch}","tags_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/tags","blobs_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/git/refs{/sha}","trees_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/statuses/{sha}","languages_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/languages","stargazers_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/stargazers","contributors_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/contributors","subscribers_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/subscribers","subscription_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/subscription","commits_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/commits{/sha}","git_commits_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/git/commits{/sha}","comments_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/comments{/number}","issue_comment_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/issues/comments{/number}","contents_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/contents/{+path}","compare_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/merges","archive_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/downloads","issues_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/issues{/number}","pulls_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/pulls{/number}","milestones_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/milestones{/number}","notifications_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/labels{/name}","releases_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/releases{/id}","deployments_url":"https://api.github.com/repos/yufeiliu/express-rate-limit/deployments","created_at":"2016-03-10T16:21:51Z","updated_at":"2016-03-10T16:21:53Z","pushed_at":"2016-03-10T16:25:57Z","git_url":"git://github.com/yufeiliu/express-rate-limit.git","ssh_url":"git@github.com:yufeiliu/express-rate-limit.git","clone_url":"https://github.com/yufeiliu/express-rate-limit.git","svn_url":"https://github.com/yufeiliu/express-rate-limit","homepage":"https://www.npmjs.com/package/express-rate-limit","size":28,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nfriedly:master","ref":"master","sha":"024d970f9456fab31ad583d66dab2ffebb775140","user":{"login":"nfriedly","id":114976,"avatar_url":"https://avatars.githubusercontent.com/u/114976?v=3","gravatar_id":"","url":"https://api.github.com/users/nfriedly","html_url":"https://github.com/nfriedly","followers_url":"https://api.github.com/users/nfriedly/followers","following_url":"https://api.github.com/users/nfriedly/following{/other_user}","gists_url":"https://api.github.com/users/nfriedly/gists{/gist_id}","starred_url":"https://api.github.com/users/nfriedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfriedly/subscriptions","organizations_url":"https://api.github.com/users/nfriedly/orgs","repos_url":"https://api.github.com/users/nfriedly/repos","events_url":"https://api.github.com/users/nfriedly/events{/privacy}","received_events_url":"https://api.github.com/users/nfriedly/received_events","type":"User","site_admin":false},"repo":{"id":27849281,"name":"express-rate-limit","full_name":"nfriedly/express-rate-limit","owner":{"login":"nfriedly","id":114976,"avatar_url":"https://avatars.githubusercontent.com/u/114976?v=3","gravatar_id":"","url":"https://api.github.com/users/nfriedly","html_url":"https://github.com/nfriedly","followers_url":"https://api.github.com/users/nfriedly/followers","following_url":"https://api.github.com/users/nfriedly/following{/other_user}","gists_url":"https://api.github.com/users/nfriedly/gists{/gist_id}","starred_url":"https://api.github.com/users/nfriedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfriedly/subscriptions","organizations_url":"https://api.github.com/users/nfriedly/orgs","repos_url":"https://api.github.com/users/nfriedly/repos","events_url":"https://api.github.com/users/nfriedly/events{/privacy}","received_events_url":"https://api.github.com/users/nfriedly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nfriedly/express-rate-limit","description":"Basic rate-limiting middleware for express","fork":false,"url":"https://api.github.com/repos/nfriedly/express-rate-limit","forks_url":"https://api.github.com/repos/nfriedly/express-rate-limit/forks","keys_url":"https://api.github.com/repos/nfriedly/express-rate-limit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nfriedly/express-rate-limit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nfriedly/express-rate-limit/teams","hooks_url":"https://api.github.com/repos/nfriedly/express-rate-limit/hooks","issue_events_url":"https://api.github.com/repos/nfriedly/express-rate-limit/issues/events{/number}","events_url":"https://api.github.com/repos/nfriedly/express-rate-limit/events","assignees_url":"https://api.github.com/repos/nfriedly/express-rate-limit/assignees{/user}","branches_url":"https://api.github.com/repos/nfriedly/express-rate-limit/branches{/branch}","tags_url":"https://api.github.com/repos/nfriedly/express-rate-limit/tags","blobs_url":"https://api.github.com/repos/nfriedly/express-rate-limit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nfriedly/express-rate-limit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nfriedly/express-rate-limit/git/refs{/sha}","trees_url":"https://api.github.com/repos/nfriedly/express-rate-limit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nfriedly/express-rate-limit/statuses/{sha}","languages_url":"https://api.github.com/repos/nfriedly/express-rate-limit/languages","stargazers_url":"https://api.github.com/repos/nfriedly/express-rate-limit/stargazers","contributors_url":"https://api.github.com/repos/nfriedly/express-rate-limit/contributors","subscribers_url":"https://api.github.com/repos/nfriedly/express-rate-limit/subscribers","subscription_url":"https://api.github.com/repos/nfriedly/express-rate-limit/subscription","commits_url":"https://api.github.com/repos/nfriedly/express-rate-limit/commits{/sha}","git_commits_url":"https://api.github.com/repos/nfriedly/express-rate-limit/git/commits{/sha}","comments_url":"https://api.github.com/repos/nfriedly/express-rate-limit/comments{/number}","issue_comment_url":"https://api.github.com/repos/nfriedly/express-rate-limit/issues/comments{/number}","contents_url":"https://api.github.com/repos/nfriedly/express-rate-limit/contents/{+path}","compare_url":"https://api.github.com/repos/nfriedly/express-rate-limit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nfriedly/express-rate-limit/merges","archive_url":"https://api.github.com/repos/nfriedly/express-rate-limit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nfriedly/express-rate-limit/downloads","issues_url":"https://api.github.com/repos/nfriedly/express-rate-limit/issues{/number}","pulls_url":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls{/number}","milestones_url":"https://api.github.com/repos/nfriedly/express-rate-limit/milestones{/number}","notifications_url":"https://api.github.com/repos/nfriedly/express-rate-limit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nfriedly/express-rate-limit/labels{/name}","releases_url":"https://api.github.com/repos/nfriedly/express-rate-limit/releases{/id}","deployments_url":"https://api.github.com/repos/nfriedly/express-rate-limit/deployments","created_at":"2014-12-11T01:56:32Z","updated_at":"2016-03-10T13:14:12Z","pushed_at":"2016-03-10T16:26:19Z","git_url":"git://github.com/nfriedly/express-rate-limit.git","ssh_url":"git@github.com:nfriedly/express-rate-limit.git","clone_url":"https://github.com/nfriedly/express-rate-limit.git","svn_url":"https://github.com/nfriedly/express-rate-limit","homepage":"https://www.npmjs.com/package/express-rate-limit","size":32,"stargazers_count":41,"watchers_count":41,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":2,"forks":18,"open_issues":2,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/14"},"html":{"href":"https://github.com/nfriedly/express-rate-limit/pull/14"},"issue":{"href":"https://api.github.com/repos/nfriedly/express-rate-limit/issues/14"},"comments":{"href":"https://api.github.com/repos/nfriedly/express-rate-limit/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nfriedly/express-rate-limit/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/nfriedly/express-rate-limit/statuses/4865e142cdd3ea9d1d4312166a11c3937ffbb98e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}