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:
Graham Christensen 2019-06-15 04:07:26 -04:00 committed by GitHub
commit 7ce60a81ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -574,7 +574,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
else if (setSubstituters(settings.extraSubstituters))
;
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) {
warn(e.what());
}