{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/travelping/eradius/pulls/18","id":34703206,"html_url":"https://github.com/travelping/eradius/pull/18","diff_url":"https://github.com/travelping/eradius/pull/18.diff","patch_url":"https://github.com/travelping/eradius/pull/18.patch","issue_url":"https://api.github.com/repos/travelping/eradius/issues/18","number":18,"state":"open","locked":false,"title":"[WiP] Add possibility to proxy radius requests","user":{"login":"surik","id":708165,"avatar_url":"https://avatars.githubusercontent.com/u/708165?v=3","gravatar_id":"","url":"https://api.github.com/users/surik","html_url":"https://github.com/surik","followers_url":"https://api.github.com/users/surik/followers","following_url":"https://api.github.com/users/surik/following{/other_user}","gists_url":"https://api.github.com/users/surik/gists{/gist_id}","starred_url":"https://api.github.com/users/surik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surik/subscriptions","organizations_url":"https://api.github.com/users/surik/orgs","repos_url":"https://api.github.com/users/surik/repos","events_url":"https://api.github.com/users/surik/events{/privacy}","received_events_url":"https://api.github.com/users/surik/received_events","type":"User","site_admin":false},"body":"For #16.\r\nProxy is radius handler. You can configure it via handler args, for example:\r\n```erlang\r\nProxyConfig = [{to, {{127, 0, 0, 1}, 1813}}, {secret, <<\"home_secret\">>}],\r\n....\r\n{proxy, [\r\n  { {eradius_proxy, \"proxy\", ProxyConfig }, [{\"127.0.0.1\", <<\"proxy_secret\">>}] }\r\n]}\r\n```\r\n\r\n`to` - ip and port for home server, `secret` - secret phrase for this server. Secret is optional and by default it comes from nas properties","created_at":"2015-05-05T08:10:34Z","updated_at":"2015-05-05T08:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/travelping/eradius/pulls/18/commits","review_comments_url":"https://api.github.com/repos/travelping/eradius/pulls/18/comments","review_comment_url":"https://api.github.com/repos/travelping/eradius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travelping/eradius/issues/18/comments","statuses_url":"https://api.github.com/repos/travelping/eradius/statuses/8e59718e9668f5c89424b2c51baac65b1d2ad9c0","head":{"label":"surik:proxy","ref":"proxy","sha":"8e59718e9668f5c89424b2c51baac65b1d2ad9c0","user":{"login":"surik","id":708165,"avatar_url":"https://avatars.githubusercontent.com/u/708165?v=3","gravatar_id":"","url":"https://api.github.com/users/surik","html_url":"https://github.com/surik","followers_url":"https://api.github.com/users/surik/followers","following_url":"https://api.github.com/users/surik/following{/other_user}","gists_url":"https://api.github.com/users/surik/gists{/gist_id}","starred_url":"https://api.github.com/users/surik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surik/subscriptions","organizations_url":"https://api.github.com/users/surik/orgs","repos_url":"https://api.github.com/users/surik/repos","events_url":"https://api.github.com/users/surik/events{/privacy}","received_events_url":"https://api.github.com/users/surik/received_events","type":"User","site_admin":false},"repo":{"id":35026854,"name":"eradius","full_name":"surik/eradius","owner":{"login":"surik","id":708165,"avatar_url":"https://avatars.githubusercontent.com/u/708165?v=3","gravatar_id":"","url":"https://api.github.com/users/surik","html_url":"https://github.com/surik","followers_url":"https://api.github.com/users/surik/followers","following_url":"https://api.github.com/users/surik/following{/other_user}","gists_url":"https://api.github.com/users/surik/gists{/gist_id}","starred_url":"https://api.github.com/users/surik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surik/subscriptions","organizations_url":"https://api.github.com/users/surik/orgs","repos_url":"https://api.github.com/users/surik/repos","events_url":"https://api.github.com/users/surik/events{/privacy}","received_events_url":"https://api.github.com/users/surik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/surik/eradius","description":"Erlang RADIUS server framework","fork":true,"url":"https://api.github.com/repos/surik/eradius","forks_url":"https://api.github.com/repos/surik/eradius/forks","keys_url":"https://api.github.com/repos/surik/eradius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/surik/eradius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/surik/eradius/teams","hooks_url":"https://api.github.com/repos/surik/eradius/hooks","issue_events_url":"https://api.github.com/repos/surik/eradius/issues/events{/number}","events_url":"https://api.github.com/repos/surik/eradius/events","assignees_url":"https://api.github.com/repos/surik/eradius/assignees{/user}","branches_url":"https://api.github.com/repos/surik/eradius/branches{/branch}","tags_url":"https://api.github.com/repos/surik/eradius/tags","blobs_url":"https://api.github.com/repos/surik/eradius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/surik/eradius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/surik/eradius/git/refs{/sha}","trees_url":"https://api.github.com/repos/surik/eradius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/surik/eradius/statuses/{sha}","languages_url":"https://api.github.com/repos/surik/eradius/languages","stargazers_url":"https://api.github.com/repos/surik/eradius/stargazers","contributors_url":"https://api.github.com/repos/surik/eradius/contributors","subscribers_url":"https://api.github.com/repos/surik/eradius/subscribers","subscription_url":"https://api.github.com/repos/surik/eradius/subscription","commits_url":"https://api.github.com/repos/surik/eradius/commits{/sha}","git_commits_url":"https://api.github.com/repos/surik/eradius/git/commits{/sha}","comments_url":"https://api.github.com/repos/surik/eradius/comments{/number}","issue_comment_url":"https://api.github.com/repos/surik/eradius/issues/comments{/number}","contents_url":"https://api.github.com/repos/surik/eradius/contents/{+path}","compare_url":"https://api.github.com/repos/surik/eradius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/surik/eradius/merges","archive_url":"https://api.github.com/repos/surik/eradius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/surik/eradius/downloads","issues_url":"https://api.github.com/repos/surik/eradius/issues{/number}","pulls_url":"https://api.github.com/repos/surik/eradius/pulls{/number}","milestones_url":"https://api.github.com/repos/surik/eradius/milestones{/number}","notifications_url":"https://api.github.com/repos/surik/eradius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/surik/eradius/labels{/name}","releases_url":"https://api.github.com/repos/surik/eradius/releases{/id}","created_at":"2015-05-04T09:45:21Z","updated_at":"2015-05-04T09:45:22Z","pushed_at":"2015-05-05T07:50:41Z","git_url":"git://github.com/surik/eradius.git","ssh_url":"git@github.com:surik/eradius.git","clone_url":"https://github.com/surik/eradius.git","svn_url":"https://github.com/surik/eradius","homepage":"","size":1023,"stargazers_count":0,"watchers_count":0,"language":"Erlang","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":"travelping:master","ref":"master","sha":"f26e1a6087e54b5ea67c8185458ae38417706cff","user":{"login":"travelping","id":364206,"avatar_url":"https://avatars.githubusercontent.com/u/364206?v=3","gravatar_id":"","url":"https://api.github.com/users/travelping","html_url":"https://github.com/travelping","followers_url":"https://api.github.com/users/travelping/followers","following_url":"https://api.github.com/users/travelping/following{/other_user}","gists_url":"https://api.github.com/users/travelping/gists{/gist_id}","starred_url":"https://api.github.com/users/travelping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travelping/subscriptions","organizations_url":"https://api.github.com/users/travelping/orgs","repos_url":"https://api.github.com/users/travelping/repos","events_url":"https://api.github.com/users/travelping/events{/privacy}","received_events_url":"https://api.github.com/users/travelping/received_events","type":"Organization","site_admin":false},"repo":{"id":3345164,"name":"eradius","full_name":"travelping/eradius","owner":{"login":"travelping","id":364206,"avatar_url":"https://avatars.githubusercontent.com/u/364206?v=3","gravatar_id":"","url":"https://api.github.com/users/travelping","html_url":"https://github.com/travelping","followers_url":"https://api.github.com/users/travelping/followers","following_url":"https://api.github.com/users/travelping/following{/other_user}","gists_url":"https://api.github.com/users/travelping/gists{/gist_id}","starred_url":"https://api.github.com/users/travelping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travelping/subscriptions","organizations_url":"https://api.github.com/users/travelping/orgs","repos_url":"https://api.github.com/users/travelping/repos","events_url":"https://api.github.com/users/travelping/events{/privacy}","received_events_url":"https://api.github.com/users/travelping/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travelping/eradius","description":"Erlang RADIUS server framework","fork":false,"url":"https://api.github.com/repos/travelping/eradius","forks_url":"https://api.github.com/repos/travelping/eradius/forks","keys_url":"https://api.github.com/repos/travelping/eradius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travelping/eradius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travelping/eradius/teams","hooks_url":"https://api.github.com/repos/travelping/eradius/hooks","issue_events_url":"https://api.github.com/repos/travelping/eradius/issues/events{/number}","events_url":"https://api.github.com/repos/travelping/eradius/events","assignees_url":"https://api.github.com/repos/travelping/eradius/assignees{/user}","branches_url":"https://api.github.com/repos/travelping/eradius/branches{/branch}","tags_url":"https://api.github.com/repos/travelping/eradius/tags","blobs_url":"https://api.github.com/repos/travelping/eradius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travelping/eradius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travelping/eradius/git/refs{/sha}","trees_url":"https://api.github.com/repos/travelping/eradius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travelping/eradius/statuses/{sha}","languages_url":"https://api.github.com/repos/travelping/eradius/languages","stargazers_url":"https://api.github.com/repos/travelping/eradius/stargazers","contributors_url":"https://api.github.com/repos/travelping/eradius/contributors","subscribers_url":"https://api.github.com/repos/travelping/eradius/subscribers","subscription_url":"https://api.github.com/repos/travelping/eradius/subscription","commits_url":"https://api.github.com/repos/travelping/eradius/commits{/sha}","git_commits_url":"https://api.github.com/repos/travelping/eradius/git/commits{/sha}","comments_url":"https://api.github.com/repos/travelping/eradius/comments{/number}","issue_comment_url":"https://api.github.com/repos/travelping/eradius/issues/comments{/number}","contents_url":"https://api.github.com/repos/travelping/eradius/contents/{+path}","compare_url":"https://api.github.com/repos/travelping/eradius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travelping/eradius/merges","archive_url":"https://api.github.com/repos/travelping/eradius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travelping/eradius/downloads","issues_url":"https://api.github.com/repos/travelping/eradius/issues{/number}","pulls_url":"https://api.github.com/repos/travelping/eradius/pulls{/number}","milestones_url":"https://api.github.com/repos/travelping/eradius/milestones{/number}","notifications_url":"https://api.github.com/repos/travelping/eradius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travelping/eradius/labels{/name}","releases_url":"https://api.github.com/repos/travelping/eradius/releases{/id}","created_at":"2012-02-03T14:52:34Z","updated_at":"2015-05-04T09:50:51Z","pushed_at":"2015-05-04T09:50:50Z","git_url":"git://github.com/travelping/eradius.git","ssh_url":"git@github.com:travelping/eradius.git","clone_url":"https://github.com/travelping/eradius.git","svn_url":"https://github.com/travelping/eradius","homepage":"","size":1023,"stargazers_count":7,"watchers_count":7,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":8,"forks":15,"open_issues":8,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travelping/eradius/pulls/18"},"html":{"href":"https://github.com/travelping/eradius/pull/18"},"issue":{"href":"https://api.github.com/repos/travelping/eradius/issues/18"},"comments":{"href":"https://api.github.com/repos/travelping/eradius/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/travelping/eradius/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/travelping/eradius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travelping/eradius/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/travelping/eradius/statuses/8e59718e9668f5c89424b2c51baac65b1d2ad9c0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":93,"deletions":22,"changed_files":3}}