Merge pull request #2931 from NinjaTrappeur/nin-add-warning-setting-untrusted
Daemon: warn when an untrusted user cannot override a setting
This commit is contained in:
commit
7ce60a81ba
|
@ -574,7 +574,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
|
||||||
else if (setSubstituters(settings.extraSubstituters))
|
else if (setSubstituters(settings.extraSubstituters))
|
||||||
;
|
;
|
||||||
else
|
else
|
||||||
debug("ignoring untrusted setting '%s'", name);
|
warn("ignoring the user-specified setting '%s', because it is a restricted setting and you are not a trusted user.", name);
|
||||||
} catch (UsageError & e) {
|
} catch (UsageError & e) {
|
||||||
warn(e.what());
|
warn(e.what());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue