{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/Kdyby/Curl/pulls/20","id":27140819,"html_url":"https://github.com/Kdyby/Curl/pull/20","diff_url":"https://github.com/Kdyby/Curl/pull/20.diff","patch_url":"https://github.com/Kdyby/Curl/pull/20.patch","issue_url":"https://api.github.com/repos/Kdyby/Curl/issues/20","number":20,"state":"closed","locked":false,"title":"Implemented detection of IP resolve option for interface","user":{"login":"stekycz","id":865447,"avatar_url":"https://avatars.githubusercontent.com/u/865447?v=3","gravatar_id":"","url":"https://api.github.com/users/stekycz","html_url":"https://github.com/stekycz","followers_url":"https://api.github.com/users/stekycz/followers","following_url":"https://api.github.com/users/stekycz/following{/other_user}","gists_url":"https://api.github.com/users/stekycz/gists{/gist_id}","starred_url":"https://api.github.com/users/stekycz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stekycz/subscriptions","organizations_url":"https://api.github.com/users/stekycz/orgs","repos_url":"https://api.github.com/users/stekycz/repos","events_url":"https://api.github.com/users/stekycz/events{/privacy}","received_events_url":"https://api.github.com/users/stekycz/received_events","type":"User","site_admin":false},"body":"`CURLOPT_INTERFACE` defines output network interface or IP address. However when machine the code is running on has IPv4 address(es) and IPv6 address(es) together then it brings WTF bug. The IPv6 address is preferred somehow.\r\n\r\nThe bug reveals itself when the machine tries to connect to server with both IP address versions too. So let's say you want to use your public IPv4 to connect to some API instead of using your IPv6. If the API server has public IPv6 address then the request fails on \"couldn't bind to <ip>\". You have to tell curl which version you want to use and then it works correctly. This is required because default value of `CURLOPT_IPRESOLVE` is `whatever`.\r\n\r\nThe new code helps you because you do not have to think about it anymore.","created_at":"2015-01-10T00:55:47Z","updated_at":"2015-01-10T18:30:49Z","closed_at":"2015-01-10T18:30:49Z","merged_at":"2015-01-10T18:30:49Z","merge_commit_sha":"cf2d0573fcc643515dd00fd619a40a487d01a347","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kdyby/Curl/pulls/20/commits","review_comments_url":"https://api.github.com/repos/Kdyby/Curl/pulls/20/comments","review_comment_url":"https://api.github.com/repos/Kdyby/Curl/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Kdyby/Curl/issues/20/comments","statuses_url":"https://api.github.com/repos/Kdyby/Curl/statuses/53a65ee4444dcff60454f25ab5ac12b5fa3b2e83","head":{"label":"stekycz:feature/ip-version-detection","ref":"feature/ip-version-detection","sha":"53a65ee4444dcff60454f25ab5ac12b5fa3b2e83","user":{"login":"stekycz","id":865447,"avatar_url":"https://avatars.githubusercontent.com/u/865447?v=3","gravatar_id":"","url":"https://api.github.com/users/stekycz","html_url":"https://github.com/stekycz","followers_url":"https://api.github.com/users/stekycz/followers","following_url":"https://api.github.com/users/stekycz/following{/other_user}","gists_url":"https://api.github.com/users/stekycz/gists{/gist_id}","starred_url":"https://api.github.com/users/stekycz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stekycz/subscriptions","organizations_url":"https://api.github.com/users/stekycz/orgs","repos_url":"https://api.github.com/users/stekycz/repos","events_url":"https://api.github.com/users/stekycz/events{/privacy}","received_events_url":"https://api.github.com/users/stekycz/received_events","type":"User","site_admin":false},"repo":{"id":29041464,"name":"Curl","full_name":"stekycz/Curl","owner":{"login":"stekycz","id":865447,"avatar_url":"https://avatars.githubusercontent.com/u/865447?v=3","gravatar_id":"","url":"https://api.github.com/users/stekycz","html_url":"https://github.com/stekycz","followers_url":"https://api.github.com/users/stekycz/followers","following_url":"https://api.github.com/users/stekycz/following{/other_user}","gists_url":"https://api.github.com/users/stekycz/gists{/gist_id}","starred_url":"https://api.github.com/users/stekycz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stekycz/subscriptions","organizations_url":"https://api.github.com/users/stekycz/orgs","repos_url":"https://api.github.com/users/stekycz/repos","events_url":"https://api.github.com/users/stekycz/events{/privacy}","received_events_url":"https://api.github.com/users/stekycz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stekycz/Curl","description":"Curl wrapper for Nette Framework","fork":true,"url":"https://api.github.com/repos/stekycz/Curl","forks_url":"https://api.github.com/repos/stekycz/Curl/forks","keys_url":"https://api.github.com/repos/stekycz/Curl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stekycz/Curl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stekycz/Curl/teams","hooks_url":"https://api.github.com/repos/stekycz/Curl/hooks","issue_events_url":"https://api.github.com/repos/stekycz/Curl/issues/events{/number}","events_url":"https://api.github.com/repos/stekycz/Curl/events","assignees_url":"https://api.github.com/repos/stekycz/Curl/assignees{/user}","branches_url":"https://api.github.com/repos/stekycz/Curl/branches{/branch}","tags_url":"https://api.github.com/repos/stekycz/Curl/tags","blobs_url":"https://api.github.com/repos/stekycz/Curl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stekycz/Curl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stekycz/Curl/git/refs{/sha}","trees_url":"https://api.github.com/repos/stekycz/Curl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stekycz/Curl/statuses/{sha}","languages_url":"https://api.github.com/repos/stekycz/Curl/languages","stargazers_url":"https://api.github.com/repos/stekycz/Curl/stargazers","contributors_url":"https://api.github.com/repos/stekycz/Curl/contributors","subscribers_url":"https://api.github.com/repos/stekycz/Curl/subscribers","subscription_url":"https://api.github.com/repos/stekycz/Curl/subscription","commits_url":"https://api.github.com/repos/stekycz/Curl/commits{/sha}","git_commits_url":"https://api.github.com/repos/stekycz/Curl/git/commits{/sha}","comments_url":"https://api.github.com/repos/stekycz/Curl/comments{/number}","issue_comment_url":"https://api.github.com/repos/stekycz/Curl/issues/comments/{number}","contents_url":"https://api.github.com/repos/stekycz/Curl/contents/{+path}","compare_url":"https://api.github.com/repos/stekycz/Curl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stekycz/Curl/merges","archive_url":"https://api.github.com/repos/stekycz/Curl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stekycz/Curl/downloads","issues_url":"https://api.github.com/repos/stekycz/Curl/issues{/number}","pulls_url":"https://api.github.com/repos/stekycz/Curl/pulls{/number}","milestones_url":"https://api.github.com/repos/stekycz/Curl/milestones{/number}","notifications_url":"https://api.github.com/repos/stekycz/Curl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stekycz/Curl/labels{/name}","releases_url":"https://api.github.com/repos/stekycz/Curl/releases{/id}","created_at":"2015-01-10T00:19:05Z","updated_at":"2015-01-10T00:19:06Z","pushed_at":"2015-01-10T01:23:01Z","git_url":"git://github.com/stekycz/Curl.git","ssh_url":"git@github.com:stekycz/Curl.git","clone_url":"https://github.com/stekycz/Curl.git","svn_url":"https://github.com/stekycz/Curl","homepage":"https://packagist.org/packages/kdyby/curl","size":758,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Kdyby:master","ref":"master","sha":"d3d99a3f11df34e429c5353c0300e77d15d9197a","user":{"login":"Kdyby","id":615853,"avatar_url":"https://avatars.githubusercontent.com/u/615853?v=3","gravatar_id":"","url":"https://api.github.com/users/Kdyby","html_url":"https://github.com/Kdyby","followers_url":"https://api.github.com/users/Kdyby/followers","following_url":"https://api.github.com/users/Kdyby/following{/other_user}","gists_url":"https://api.github.com/users/Kdyby/gists{/gist_id}","starred_url":"https://api.github.com/users/Kdyby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kdyby/subscriptions","organizations_url":"https://api.github.com/users/Kdyby/orgs","repos_url":"https://api.github.com/users/Kdyby/repos","events_url":"https://api.github.com/users/Kdyby/events{/privacy}","received_events_url":"https://api.github.com/users/Kdyby/received_events","type":"Organization","site_admin":false},"repo":{"id":3904668,"name":"Curl","full_name":"Kdyby/Curl","owner":{"login":"Kdyby","id":615853,"avatar_url":"https://avatars.githubusercontent.com/u/615853?v=3","gravatar_id":"","url":"https://api.github.com/users/Kdyby","html_url":"https://github.com/Kdyby","followers_url":"https://api.github.com/users/Kdyby/followers","following_url":"https://api.github.com/users/Kdyby/following{/other_user}","gists_url":"https://api.github.com/users/Kdyby/gists{/gist_id}","starred_url":"https://api.github.com/users/Kdyby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kdyby/subscriptions","organizations_url":"https://api.github.com/users/Kdyby/orgs","repos_url":"https://api.github.com/users/Kdyby/repos","events_url":"https://api.github.com/users/Kdyby/events{/privacy}","received_events_url":"https://api.github.com/users/Kdyby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kdyby/Curl","description":"Curl wrapper for Nette Framework","fork":false,"url":"https://api.github.com/repos/Kdyby/Curl","forks_url":"https://api.github.com/repos/Kdyby/Curl/forks","keys_url":"https://api.github.com/repos/Kdyby/Curl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kdyby/Curl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kdyby/Curl/teams","hooks_url":"https://api.github.com/repos/Kdyby/Curl/hooks","issue_events_url":"https://api.github.com/repos/Kdyby/Curl/issues/events{/number}","events_url":"https://api.github.com/repos/Kdyby/Curl/events","assignees_url":"https://api.github.com/repos/Kdyby/Curl/assignees{/user}","branches_url":"https://api.github.com/repos/Kdyby/Curl/branches{/branch}","tags_url":"https://api.github.com/repos/Kdyby/Curl/tags","blobs_url":"https://api.github.com/repos/Kdyby/Curl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kdyby/Curl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kdyby/Curl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kdyby/Curl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kdyby/Curl/statuses/{sha}","languages_url":"https://api.github.com/repos/Kdyby/Curl/languages","stargazers_url":"https://api.github.com/repos/Kdyby/Curl/stargazers","contributors_url":"https://api.github.com/repos/Kdyby/Curl/contributors","subscribers_url":"https://api.github.com/repos/Kdyby/Curl/subscribers","subscription_url":"https://api.github.com/repos/Kdyby/Curl/subscription","commits_url":"https://api.github.com/repos/Kdyby/Curl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kdyby/Curl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kdyby/Curl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kdyby/Curl/issues/comments/{number}","contents_url":"https://api.github.com/repos/Kdyby/Curl/contents/{+path}","compare_url":"https://api.github.com/repos/Kdyby/Curl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kdyby/Curl/merges","archive_url":"https://api.github.com/repos/Kdyby/Curl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kdyby/Curl/downloads","issues_url":"https://api.github.com/repos/Kdyby/Curl/issues{/number}","pulls_url":"https://api.github.com/repos/Kdyby/Curl/pulls{/number}","milestones_url":"https://api.github.com/repos/Kdyby/Curl/milestones{/number}","notifications_url":"https://api.github.com/repos/Kdyby/Curl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kdyby/Curl/labels{/name}","releases_url":"https://api.github.com/repos/Kdyby/Curl/releases{/id}","created_at":"2012-04-02T17:10:24Z","updated_at":"2015-01-09T16:37:01Z","pushed_at":"2015-01-10T18:30:49Z","git_url":"git://github.com/Kdyby/Curl.git","ssh_url":"git@github.com:Kdyby/Curl.git","clone_url":"https://github.com/Kdyby/Curl.git","svn_url":"https://github.com/Kdyby/Curl","homepage":"https://packagist.org/packages/kdyby/curl","size":758,"stargazers_count":24,"watchers_count":24,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kdyby/Curl/pulls/20"},"html":{"href":"https://github.com/Kdyby/Curl/pull/20"},"issue":{"href":"https://api.github.com/repos/Kdyby/Curl/issues/20"},"comments":{"href":"https://api.github.com/repos/Kdyby/Curl/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/Kdyby/Curl/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/Kdyby/Curl/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Kdyby/Curl/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/Kdyby/Curl/statuses/53a65ee4444dcff60454f25ab5ac12b5fa3b2e83"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fprochazka","id":158625,"avatar_url":"https://avatars.githubusercontent.com/u/158625?v=3","gravatar_id":"","url":"https://api.github.com/users/fprochazka","html_url":"https://github.com/fprochazka","followers_url":"https://api.github.com/users/fprochazka/followers","following_url":"https://api.github.com/users/fprochazka/following{/other_user}","gists_url":"https://api.github.com/users/fprochazka/gists{/gist_id}","starred_url":"https://api.github.com/users/fprochazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fprochazka/subscriptions","organizations_url":"https://api.github.com/users/fprochazka/orgs","repos_url":"https://api.github.com/users/fprochazka/repos","events_url":"https://api.github.com/users/fprochazka/events{/privacy}","received_events_url":"https://api.github.com/users/fprochazka/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":23,"deletions":0,"changed_files":1}}