hostname-util: explain what 'LDH' is

This commit is contained in:
Lennart Poettering
2020-12-15 17:59:44 +01:00
parent 1feb8eee2d
commit 9e815cf2c2
+2
View File
@@ -89,6 +89,8 @@ int gethostname_strict(char **ret) {
}
bool valid_ldh_char(char c) {
/* "LDH" → "Letters, digits, hyphens", as per RFC 5890, Section 2.3.1 */
return
(c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||