Merge remote-tracking branch 'cd/master'
This commit is contained in:
commit
5ba9bc516a
@ -186,10 +186,16 @@ types // rec {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# TODO
|
addr = either addr4 addr6;
|
||||||
addr = str;
|
addr4 = mkOptionType {
|
||||||
addr4 = str;
|
name = "IPv4 address";
|
||||||
addr6 = str;
|
check = let
|
||||||
|
IPv4address = let d = "([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"; in
|
||||||
|
concatMapStringsSep "." (const d) (range 1 4);
|
||||||
|
in x: match IPv4address != null;
|
||||||
|
merge = mergeOneOption;
|
||||||
|
};
|
||||||
|
addr6 = str; # TODO
|
||||||
|
|
||||||
pgp-pubkey = str;
|
pgp-pubkey = str;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user