{"thread":{"id":"36990","subject":"Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars","startedAt":"2014-06-24T12:47:26Z","lastAt":"2014-06-24T13:19:10Z","messageCount":3,"participants":["Vincent B.","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"244929","messageId":"53A9735E.8080604@luminar.eu.org","threadId":"36990","inReplyTo":null,"subject":"Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars","fromName":"Vincent B.","fromEmail":"vb@luminar.eu.org","sentAt":"2014-06-24T12:47:26Z","receivedAt":"2014-06-24T12:47:26Z","isPatch":false,"sender":{"key":"vb@luminar.eu.org","avatar":null},"body":"I discovered an issue while trying to clone a git repo over an IPv6 link-local address:\n\n[vb@nerenyi ~/code/ocaml-llnet]% LANG=C git clone \"http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo\"\n\nCloning into 'repo'...\nfatal: unable to access 'http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo/': Failed to connect to fe80::226:c6ff\n:fe50:efa0 port 3307: Connection refused\n\nIt tries to connect to port 3307, and not 33075, strangely.\n\nCheers,\n\nVincent Bernardoff\n"},{"id":"244931","messageId":"53A97A08.2020304@web.de","threadId":"36990","inReplyTo":"53A9735E.8080604@luminar.eu.org","subject":"Re: Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2014-06-24T13:15:52Z","receivedAt":"2014-06-24T13:15:52Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 06/24/2014 02:47 PM, Vincent B. wrote:\n> I discovered an issue while trying to clone a git repo over an IPv6 link-local address:\n>\n> [vb@nerenyi ~/code/ocaml-llnet]% LANG=C git clone \"http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo\"\n>\n> Cloning into 'repo'...\n> fatal: unable to access 'http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo/': Failed to connect to fe80::226:c6ff\n> :fe50:efa0 port 3307: Connection refused\n>\n> It tries to connect to port 3307, and not 33075, strangely.\n>\n> Cheers,\n>\n> Vincent Bernardoff\nWhich OS are you using ?\n\nwhat does\ngit --version\ngive?\n\nAnd what does this do ?\n\nGIT_CURL_VERBOSE=1 LANG=C git clone \"http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo\"\n"},{"id":"244932","messageId":"53A97ACE.8040405@luminar.eu.org","threadId":"36990","inReplyTo":"53A97A08.2020304@web.de","subject":"Re: Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars","fromName":"Vincent B.","fromEmail":"vb@luminar.eu.org","sentAt":"2014-06-24T13:19:10Z","receivedAt":"2014-06-24T13:19:10Z","isPatch":false,"sender":{"key":"vb@luminar.eu.org","avatar":null},"body":"On 24/06/2014 15:15, Torsten Bögershausen wrote:\n> Which OS are you using ?\n> \n> what does\n> git --version\n> give?\n> \n> And what does this do ?\n> \n> GIT_CURL_VERBOSE=1 LANG=C git clone \"http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo\"\n> \n\nMy mistake, actually:\n\nAs per RFC6874, IPv6 URI with zones have to be encoded [::%25zone] and not [::%zone]. It is working now.\n\nThanks,\n\nVincent\n"}]}