git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] Allow using ':' in git:// hostname.

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jan 26, 2010, 18:24 UTC
Message-ID
<1264530282-4783-1-git-send-email-ilari.liusvaara@elisanet.fi>

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(-)
Next: Ilari Liusvaara
Message 1 of 5 in “Allow using ':' in git:// hostname.”
  1. 0/2 Allow using ':' in git:// hostname.Ilari Liusvaara, Jan 26, 2010
  2. 1/2 Support addresses with ':' in git-daemonIlari Liusvaara, Jan 26, 2010
  3. Tay Ray ChuanJan 26, 2010
  4. 2/2 Allow use of []-wrapped addresses in git://Ilari Liusvaara, Jan 26, 2010
  5. Junio C HamanoJan 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.