forked from lix-project/lix
Merge pull request #5071 from NixOS/dont-send-xp-features-to-the-daemon
Don’t send the experimental-features to the daemon
This commit is contained in:
commit
f3b8b4040e
|
@ -227,6 +227,12 @@ struct ClientSettings
|
||||||
try {
|
try {
|
||||||
if (name == "ssh-auth-sock") // obsolete
|
if (name == "ssh-auth-sock") // obsolete
|
||||||
;
|
;
|
||||||
|
else if (name == settings.experimentalFeatures.name) {
|
||||||
|
// We don’t want to forward the experimental features to
|
||||||
|
// the daemon, as that could cause some pretty weird stuff
|
||||||
|
if (tokenizeString<Strings>(value) != settings.experimentalFeatures.get())
|
||||||
|
debug("Ignoring the client-specified experimental features");
|
||||||
|
}
|
||||||
else if (trusted
|
else if (trusted
|
||||||
|| name == settings.buildTimeout.name
|
|| name == settings.buildTimeout.name
|
||||||
|| name == "connect-timeout"
|
|| name == "connect-timeout"
|
||||||
|
|
|
@ -222,6 +222,7 @@ void RemoteStore::setOptions(Connection & conn)
|
||||||
overrides.erase(settings.buildCores.name);
|
overrides.erase(settings.buildCores.name);
|
||||||
overrides.erase(settings.useSubstitutes.name);
|
overrides.erase(settings.useSubstitutes.name);
|
||||||
overrides.erase(loggerSettings.showTrace.name);
|
overrides.erase(loggerSettings.showTrace.name);
|
||||||
|
overrides.erase(settings.experimentalFeatures.name);
|
||||||
conn.to << overrides.size();
|
conn.to << overrides.size();
|
||||||
for (auto & i : overrides)
|
for (auto & i : overrides)
|
||||||
conn.to << i.first << i.second.value;
|
conn.to << i.first << i.second.value;
|
||||||
|
|
Loading…
Reference in a new issue