Hostname matching should be case insensitive #29

Closed
opened 2021-11-20 09:34:46 +00:00 by nervuri · 1 comment
$ amfora GEMINI.CIRCUMLUNAR.SPACE
53 No proxying to other hosts or ports!
$ amfora gemini.circumlunar.space
[works]

Stéphane Bortzmeyer notes:

RFC 1034, on DNS, in its section 3.1 "By convention, domain names can be
stored with arbitrary case, but domain name comparisons for all present
domain functions are done in a case-insensitive manner, assuming an
ASCII character set, and a high order zero bit." And section 3.5 "Note
that while upper and lower case letters are allowed in domain names, no
significance is attached to the case. That is, two names with the same
spelling but different case are to be treated as if identical."

Also, in RFC 3986 on URI, section 3.2.2 "The host subcomponent is
case-insensitive."

(IDN complicate things a bit and, unfortunately, Gemini standard is
silent about IDN.)

``` $ amfora GEMINI.CIRCUMLUNAR.SPACE 53 No proxying to other hosts or ports! $ amfora gemini.circumlunar.space [works] ``` * https://lists.orbitalfox.eu/archives/gemini/2021/007620.html * https://lists.orbitalfox.eu/archives/gemini/2021/007621.html Stéphane Bortzmeyer notes: > RFC 1034, on DNS, in its section 3.1 "By convention, domain names can be > stored with arbitrary case, but domain name comparisons for all present > domain functions are done in a case-insensitive manner, assuming an > ASCII character set, and a high order zero bit." And section 3.5 "Note > that while upper and lower case letters are allowed in domain names, no > significance is attached to the case. That is, two names with the same > spelling but different case are to be treated as if identical." > > Also, in RFC 3986 on URI, section 3.2.2 "The host subcomponent is case-insensitive." > > (IDN complicate things a bit and, unfortunately, Gemini standard is silent about IDN.)
Owner

Fixed. Thanks for report! Sorry it took a literal year.

Fixed. Thanks for report! Sorry it took a literal year.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: solderpunk/molly-brown#29
No description provided.