Unable to clone a repo over an IPv6 link local address: port got trimmed to 4 chars
- From
- Vincent B. <vb@luminar.eu.org>
- Date
- Jun 24, 2014, 12:47 UTC
- Message-ID
- <53A9735E.8080604@luminar.eu.org>
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