{"action":"created","issue":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks-libev/issues/1945","repository_url":"https://api.github.com/repos/shadowsocks/shadowsocks-libev","labels_url":"https://api.github.com/repos/shadowsocks/shadowsocks-libev/issues/1945/labels{/name}","comments_url":"https://api.github.com/repos/shadowsocks/shadowsocks-libev/issues/1945/comments","events_url":"https://api.github.com/repos/shadowsocks/shadowsocks-libev/issues/1945/events","html_url":"https://github.com/shadowsocks/shadowsocks-libev/issues/1945","id":300087350,"number":1945,"title":"unsafe stripping of port from hostname in http.c (incompatibility SNI sniffing with IPv6)","user":{"login":"starter48","id":14238917,"avatar_url":"https://avatars2.githubusercontent.com/u/14238917?v=4","gravatar_id":"","url":"https://api.github.com/users/starter48","html_url":"https://github.com/starter48","followers_url":"https://api.github.com/users/starter48/followers","following_url":"https://api.github.com/users/starter48/following{/other_user}","gists_url":"https://api.github.com/users/starter48/gists{/gist_id}","starred_url":"https://api.github.com/users/starter48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starter48/subscriptions","organizations_url":"https://api.github.com/users/starter48/orgs","repos_url":"https://api.github.com/users/starter48/repos","events_url":"https://api.github.com/users/starter48/events{/privacy}","received_events_url":"https://api.github.com/users/starter48/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-26T02:07:06Z","updated_at":"2018-02-26T05:59:47Z","closed_at":null,"author_association":"NONE","body":"### What version of shadowsocks-libev are you using?\r\nLatest\r\n### What operating system are you using?\r\nLinux\r\n### What did you do?\r\nI've send the following request to [2001:470:1:18::119]:\r\n`GET /ip/?callback=?&testdomain=test-ipv6.com&testname=test_ipv6 HTTP/1.1\\r\\nHost: [2001:470:1:18::119]\\r\\n\\r\\n`\r\nwith `atyp=4` (IPv6)\r\n### What did you expect to see?\r\n**INFO connect to [2001:470:1:18::119]:80**\r\n### What did you see instead?\r\nPure IPv6 address truncated:\r\n**INFO connect to [2001:470:1:18::80**\r\n### What is your config in detail (with all sensitive info masked)?\r\nNo matter. Problem in SNI sniffing (`parse_http_header()` func in **http.c**).\r\nIPv6 address without port has been truncated by the last colon.\r\n[I've described it and proposed a patch here](https://github.com/dlundquist/sniproxy/issues/279)"},"comment":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks-libev/issues/comments/368398701","html_url":"https://github.com/shadowsocks/shadowsocks-libev/issues/1945#issuecomment-368398701","issue_url":"https://api.github.com/repos/shadowsocks/shadowsocks-libev/issues/1945","id":368398701,"user":{"login":"madeye","id":627917,"avatar_url":"https://avatars1.githubusercontent.com/u/627917?v=4","gravatar_id":"","url":"https://api.github.com/users/madeye","html_url":"https://github.com/madeye","followers_url":"https://api.github.com/users/madeye/followers","following_url":"https://api.github.com/users/madeye/following{/other_user}","gists_url":"https://api.github.com/users/madeye/gists{/gist_id}","starred_url":"https://api.github.com/users/madeye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeye/subscriptions","organizations_url":"https://api.github.com/users/madeye/orgs","repos_url":"https://api.github.com/users/madeye/repos","events_url":"https://api.github.com/users/madeye/events{/privacy}","received_events_url":"https://api.github.com/users/madeye/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T05:59:47Z","updated_at":"2018-02-26T05:59:47Z","author_association":"NONE","body":"Please open a pull request instead."}}
{"actor":{"display_login":"madeye"}}