nixos/network-interfaces: Fix bug in converting old ipAddresses

This commit is contained in:
William A. Kennington III 2014-08-31 09:47:18 -07:00
parent 9a697d775a
commit 02ecc98e87

View File

@ -586,10 +586,10 @@ in
let
ips = i.ip4 ++ optionals cfg.enableIPv6 i.ip6
++ optional (i.ipAddress != null) {
ipAddress = i.ipAddress;
address = i.ipAddress;
prefixLength = i.prefixLength;
} ++ optional (cfg.enableIPv6 && i.ipv6Address != null) {
ipAddress = i.ipv6Address;
address = i.ipv6Address;
prefixLength = i.ipv6PrefixLength;
};
in