{"action":"created","issue":{"url":"https://api.github.com/repos/d8-contrib-modules/cloudflare/issues/28","repository_url":"https://api.github.com/repos/d8-contrib-modules/cloudflare","labels_url":"https://api.github.com/repos/d8-contrib-modules/cloudflare/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/d8-contrib-modules/cloudflare/issues/28/comments","events_url":"https://api.github.com/repos/d8-contrib-modules/cloudflare/issues/28/events","html_url":"https://github.com/d8-contrib-modules/cloudflare/pull/28","id":109179782,"number":28,"title":"Return the correct client IP ","user":{"login":"victorcpereira","id":8820928,"avatar_url":"https://avatars.githubusercontent.com/u/8820928?v=3","gravatar_id":"","url":"https://api.github.com/users/victorcpereira","html_url":"https://github.com/victorcpereira","followers_url":"https://api.github.com/users/victorcpereira/followers","following_url":"https://api.github.com/users/victorcpereira/following{/other_user}","gists_url":"https://api.github.com/users/victorcpereira/gists{/gist_id}","starred_url":"https://api.github.com/users/victorcpereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorcpereira/subscriptions","organizations_url":"https://api.github.com/users/victorcpereira/orgs","repos_url":"https://api.github.com/users/victorcpereira/repos","events_url":"https://api.github.com/users/victorcpereira/events{/privacy}","received_events_url":"https://api.github.com/users/victorcpereira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-30T21:08:36Z","updated_at":"2016-02-13T21:03:37Z","closed_at":"2016-02-13T21:03:37Z","pull_request":{"url":"https://api.github.com/repos/d8-contrib-modules/cloudflare/pulls/28","html_url":"https://github.com/d8-contrib-modules/cloudflare/pull/28","diff_url":"https://github.com/d8-contrib-modules/cloudflare/pull/28.diff","patch_url":"https://github.com/d8-contrib-modules/cloudflare/pull/28.patch"},"body":"Drupal has got the function Drupal::request()->getClientIp().\r\nI made a class that behaves like the hook_boot. This class is called in every request.\r\nI added Cloudflare IPs in a trusted proxies list. This way, Drupal Core can return the client ip instead of CloudFlare IP."},"comment":{"url":"https://api.github.com/repos/d8-contrib-modules/cloudflare/issues/comments/183754475","html_url":"https://github.com/d8-contrib-modules/cloudflare/pull/28#issuecomment-183754475","issue_url":"https://api.github.com/repos/d8-contrib-modules/cloudflare/issues/28","id":183754475,"user":{"login":"aweingarten","id":6517820,"avatar_url":"https://avatars.githubusercontent.com/u/6517820?v=3","gravatar_id":"","url":"https://api.github.com/users/aweingarten","html_url":"https://github.com/aweingarten","followers_url":"https://api.github.com/users/aweingarten/followers","following_url":"https://api.github.com/users/aweingarten/following{/other_user}","gists_url":"https://api.github.com/users/aweingarten/gists{/gist_id}","starred_url":"https://api.github.com/users/aweingarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aweingarten/subscriptions","organizations_url":"https://api.github.com/users/aweingarten/orgs","repos_url":"https://api.github.com/users/aweingarten/repos","events_url":"https://api.github.com/users/aweingarten/events{/privacy}","received_events_url":"https://api.github.com/users/aweingarten/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T21:03:37Z","updated_at":"2016-02-13T21:03:37Z","body":"This functionality has been incorporated into the module!"}}