systemd-resolved: fix case when dnsmasq is used as local resolver

fixes #25706
This commit is contained in:
Jörg Thalheim 2017-05-31 22:34:06 +01:00
parent 5604dbe878
commit 859267f627
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -222,13 +222,11 @@ in
'' + cfg.extraResolvconfConf + ''
'';
} // (optionalAttrs config.services.resolved.enable (
if dnsmasqResolve then {
"dnsmasq-resolv.conf".source = "/run/systemd/resolve/resolv.conf";
} else {
"resolv.conf".source = "/run/systemd/resolve/resolv.conf";
}
));
} // optionalAttrs config.services.resolved.enable {
"resolv.conf".source = "/run/systemd/resolve/resolv.conf";
} // optionalAttrs (config.services.resolved.enable && dnsmasqResolve) {
"dnsmasq-resolv.conf".source = "/run/systemd/resolve/resolv.conf";
};
networking.proxy.envVars =
optionalAttrs (cfg.proxy.default != null) {