Skip to contentSkip to conversation

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

DISCUSSION Vincent B. 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

Vincent B.

author
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Vincent B.

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

Quoted 5 lines

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"

author
#2 lore raw
Quoted 10 lines · Torsten Bögershausen

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