mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
nixos/network-interfaces: Fix bug in converting old ipAddresses
This commit is contained in:
parent
9a697d775a
commit
02ecc98e87
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user