author | Ilari Liusvaara <ilari.liusvaara@elisanet.fi> | |
Tue, 26 Jan 2010 18:24:41 +0000 (20:24 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 26 Jan 2010 18:52:52 +0000 (10:52 -0800) | ||
commit | e8dbd76d57806fd1305612d56d56a4cc7665c599 | |
tree | 94d73464c3d270597a73b0e64a3eacc8a731a886 | tree | snapshot |
parent | 35eabd1579726d594e84fc8328a5c87693dd065a | commit | diff |
Support addresses with ':' in git-daemon
If host address could have ':' in it (e.g. numeric IPv6 address), then
host and port could not be uniquely parsed. Fix this by parsing the
"["<host>"]":<port> and "["<host>"]" notations. Currently the built-in
git:// client would send <host>:<port> or <host> for such thing, but
it doesn't matter as due to bugs, resolving address fails if <host>
contains ':'.
Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If host address could have ':' in it (e.g. numeric IPv6 address), then
host and port could not be uniquely parsed. Fix this by parsing the
"["<host>"]":<port> and "["<host>"]" notations. Currently the built-in
git:// client would send <host>:<port> or <host> for such thing, but
it doesn't matter as due to bugs, resolving address fails if <host>
contains ':'.
Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c | diff | blob | history |