Allow fqdn

This commit is contained in:
niten 2023-11-18 11:49:29 -08:00
parent 0a8950bc5a
commit ba6e0fcc64
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ let
let hostChars = "[a-zA-Z0-9_-]";
in if isNotNull (builtins.match "^${hostChars}+$" host) then
"${host}.${domain}."
else if isNotNull (builtins.match "${hostChars}+\\.$" host) then
else if isNotNull
(builtins.match "(${hostChars}+\\.)+${hostChars}+\\.$" host) then
host
else if isNotNull
(builtins.match "(${hostChars}+\\.)+${hostChars}+$" host) then