git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Allow using ':' in git:// hostname.
@ 2010-01-26 18:24 Ilari Liusvaara
  2010-01-26 18:24 ` [PATCH 1/2] Support addresses with ':' in git-daemon Ilari Liusvaara
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ilari Liusvaara @ 2010-01-26 18:24 UTC (permalink / raw)
  To: git

This series fixes two problems with using addresses containing ':'
(e.g. IPv6 numeric addresses) with git://:

1) ':' in hostname makes vhost headers impossible to parse

If there is ':' in address, the vhost headers become impossible
to parse because ':' is also splits host and port and port is
optional. Change git-daemon to be able to perform address unwrapping
so there is uniquely parseable syntax for hostnames containg
':' (this is compatible to how git-remote-gits encodes such vhost
headers and how git-daemon2[1] decodes them).

2) Client double-unwraps addresses

With git://, the addresses are unwrapped twice, which breaks
address parsing for addresses enclosed by [], which in turn is
required for hostnames containing ':'.  This is changed to unwarp
the addresses only once. This also changes wrapped addresses to
be sent as wrapped for vhost headers (the first patch adds ability
to parse this).

[1] The reference implementation of gits:// server daemon.

Ilari Liusvaara (2):
  Support addresses with ':' in git-daemon
  Allow use of []-wrapped addresses in git://

 connect.c |   10 ++++++++--
 daemon.c  |   34 ++++++++++++++++++++++++++++++----
 2 files changed, 38 insertions(+), 6 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-26 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-26 18:24 [PATCH 0/2] Allow using ':' in git:// hostname Ilari Liusvaara
2010-01-26 18:24 ` [PATCH 1/2] Support addresses with ':' in git-daemon Ilari Liusvaara
2010-01-26 22:53   ` Tay Ray Chuan
2010-01-26 18:24 ` [PATCH 2/2] Allow use of []-wrapped addresses in git:// Ilari Liusvaara
2010-01-26 19:59 ` [PATCH 0/2] Allow using ':' in git:// hostname Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).