Allow fqdn
This commit is contained in:
parent
0a8950bc5a
commit
ba6e0fcc64
|
@ -60,7 +60,8 @@ let
|
||||||
let hostChars = "[a-zA-Z0-9_-]";
|
let hostChars = "[a-zA-Z0-9_-]";
|
||||||
in if isNotNull (builtins.match "^${hostChars}+$" host) then
|
in if isNotNull (builtins.match "^${hostChars}+$" host) then
|
||||||
"${host}.${domain}."
|
"${host}.${domain}."
|
||||||
else if isNotNull (builtins.match "${hostChars}+\\.$" host) then
|
else if isNotNull
|
||||||
|
(builtins.match "(${hostChars}+\\.)+${hostChars}+\\.$" host) then
|
||||||
host
|
host
|
||||||
else if isNotNull
|
else if isNotNull
|
||||||
(builtins.match "(${hostChars}+\\.)+${hostChars}+$" host) then
|
(builtins.match "(${hostChars}+\\.)+${hostChars}+$" host) then
|
||||||
|
|
Loading…
Reference in New Issue