networkmanager service: override DNS when it's actually needed

Logic expression was incorrect before.
This commit is contained in:
Nikolay Amiantov 2019-06-10 18:27:27 +03:00
parent ccbb08ed88
commit 68de116eb4

View file

@ -427,7 +427,7 @@ in {
{ source = "${networkmanager-iodine}/lib/NetworkManager/VPN/nm-iodine-service.name";
target = "NetworkManager/VPN/nm-iodine-service.name";
}
] ++ optional (cfg.appendNameservers == [] || cfg.insertNameservers == [])
] ++ optional (cfg.appendNameservers != [] || cfg.insertNameservers != [])
{ source = overrideNameserversScript;
target = "NetworkManager/dispatcher.d/02overridedns";
}