summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-04-13 11:13:59 +0200
committertv <tv@krebsco.de>2017-04-13 11:13:59 +0200
commitf8bc215a106400f136754a22db88e3ebd283abbd (patch)
treea37faee4846f7f86f4c8c4461925fec78c3a9737
parent9c5be7f364f0035847dfc9d935621cc70d5fb969 (diff)
types.net: normalize IPv6 address
-rw-r--r--lib/types.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 8a3c764..f511541 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -103,6 +103,7 @@ rec {
options = {
addr = mkOption {
type = addr6;
+ apply = lib.normalize-ip6-addr;
};
prefix = mkOption ({
type = str; # TODO routing prefix (CIDR)