{"action":"reopened","issue":{"url":"https://api.github.com/repos/curl/curl/issues/2827","repository_url":"https://api.github.com/repos/curl/curl","labels_url":"https://api.github.com/repos/curl/curl/issues/2827/labels{/name}","comments_url":"https://api.github.com/repos/curl/curl/issues/2827/comments","events_url":"https://api.github.com/repos/curl/curl/issues/2827/events","html_url":"https://github.com/curl/curl/issues/2827","id":346871843,"node_id":"MDU6SXNzdWUzNDY4NzE4NDM=","number":2827,"title":"CURLOPT_RESOLVE: Add support for multiple IP addresses per entry not work as expected","user":{"login":"codefei","id":7637224,"node_id":"MDQ6VXNlcjc2MzcyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/7637224?v=4","gravatar_id":"","url":"https://api.github.com/users/codefei","html_url":"https://github.com/codefei","followers_url":"https://api.github.com/users/codefei/followers","following_url":"https://api.github.com/users/codefei/following{/other_user}","gists_url":"https://api.github.com/users/codefei/gists{/gist_id}","starred_url":"https://api.github.com/users/codefei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefei/subscriptions","organizations_url":"https://api.github.com/users/codefei/orgs","repos_url":"https://api.github.com/users/codefei/repos","events_url":"https://api.github.com/users/codefei/events{/privacy}","received_events_url":"https://api.github.com/users/codefei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T06:06:50Z","updated_at":"2018-08-02T14:20:53Z","closed_at":null,"author_association":"NONE","body":"<!-- Only file bugs here! Ask questions on the mailing list https://curl.haxx.se/mail/\r\n     Do not file security vulnerabilities here, e-mail curl-security at haxx.se\r\n\r\n     There are collections of known issues to be aware of:\r\n     https://curl.haxx.se/docs/knownbugs.html\r\n     https://curl.haxx.se/docs/todo.html       -->\r\n\r\n### I did this\r\nwhen use CURLOPT_RESOLVE option, and set multi ip address for the hosts, for example\r\n```\r\nstruct curl_slist *host = NULL\r\nhost = curl_slist_append(host, \"api.xxx.com:80:115.239.210.27\");\r\nhost = curl_slist_append(host, \"api.xxx.com:80:115.239.210.28\");\r\nhost = curl_slist_append(host, \"api.xxx.com:80:115.239.210.29\");\r\n```\r\nlibcurl will only use the last record ip, even the ip cannot be connected, don't really support multi ip.\r\n\r\n* RESOLVE api.xxx.com:80 is - old addresses discarded!\r\n* Added api.xxx.com:80:115.239.210.27 to DNS cache\r\n* RESOLVE api.xxx.com:80 is - old addresses discarded!\r\n* Added api.xxx.com:80:115.239.210.28 to DNS cache\r\n* RESOLVE api.xxx.com:80 is - old addresses discarded!\r\n* Added api.xxx.com:80:115.239.210.29 to DNS cache\r\n* Found bundle for host api.xxx.com: 0x1c804d2f0 [serially]\r\n* Hostname api.xxx.com was found in DNS cache\r\n*   Trying 115.239.210.29...\r\n\r\n### I expected the following\r\nif one ip cannot connect, libcurl can auto use another ip for the host\r\n\r\n### curl/libcurl version\r\n\r\n[curl -V output]\r\ncURL/7.61.0\r\n\r\n### operating system\r\nMobile/15F79 ===  iOS/11.4 Model/iPhone10,3 BundleID\r\niphonex"}}
{"actor":{"display_login":"codefei"}}