threads / discuss / 36990

Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars

Subject: Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars

## tl;dr

3 messages between Jun 24, 2014 and Jun 24, 2014.

replies: 2people: 2as markdown or json

Vincent B.· Jun 24, 2014, 12:47 UTC · lore
I discovered an issue while trying to clone a git repo over an IPv6 link-local address:
[vb@nerenyi ~/code/ocaml-llnet]% LANG=C git clone "http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo"

Cloning into 'repo'... fatal: unable to access 'http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo/': Failed to connect to fe80::226:c6ff :fe50:efa0 port 3307: Connection refused

It tries to connect to port 3307, and not 33075, strangely.
Cheers,
Vincent Bernardoff
Torsten Bögershausen· Jun 24, 2014, 13:15 UTC · re: Vincent B. · lore

Re: Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars

On 06/24/2014 02:47 PM, Vincent B. wrote:
Show 13 quoted lines
> I discovered an issue while trying to clone a git repo over an IPv6 link-local address:
>
> [vb@nerenyi ~/code/ocaml-llnet]% LANG=C git clone "http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo"
>
> Cloning into 'repo'...
> fatal: unable to access 'http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo/': Failed to connect to fe80::226:c6ff
> :fe50:efa0 port 3307: Connection refused
>
> It tries to connect to port 3307, and not 33075, strangely.
>
> Cheers,
>
> Vincent Bernardoff
Which OS are you using ?

what does git --version give?

And what does this do ?
GIT_CURL_VERBOSE=1 LANG=C git clone "http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo"
Vincent B.· Jun 24, 2014, 13:19 UTC · re: Torsten Bögershausen · lore

Re: Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars

On 24/06/2014 15:15, Torsten Bögershausen wrote:
Show 10 quoted lines
> Which OS are you using ?
> 
> what does
> git --version
> give?
> 
> And what does this do ?
> 
> GIT_CURL_VERBOSE=1 LANG=C git clone "http://[fe80::226:c6ff:fe50:efa0%wlan0]:33075/repo"
> 
My mistake, actually:
As per RFC6874, IPv6 URI with zones have to be encoded [::%25zone] and not [::%zone]. It is working now.
Thanks,
Vincent

← back to recent threads