mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Don’t accept experimental features from the client
If the client sends an “experimental features” setting, just ignore it
This commit is contained in:
parent
d9ba3385a9
commit
b2bce915ad
1 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue