[tech] IPv6 addresses in URLs

Stephane Bortzmeyer stephane at sources.org
Fri Apr 16 08:03:49 BST 2021
On Thu, Apr 15, 2021 at 03:59:48PM +0000,
 nervuri <nervuri@disroot.org> wrote 
 a message of 40 lines which said:

> @ Gemini client developers: both of these URLs should work (certificate
> errors aside):
> 
> gemini://2a02:7b40:592f:a446::1/
> gemini://[2a02:7b40:592f:a446::1]:1965/

No. The first one is not a legal URL.

RFC 3986 :

3.2.2.  Host

   The host subcomponent of authority is identified by an IP literal
   encapsulated within square brackets, an IPv4 address in dotted-
   decimal form, or a registered name.
   


Archive home | About this archive