implement AllowUnregisteredUsers

This commit is contained in:
Martin Michelsen
2020-02-20 10:52:45 -08:00
parent 4812a2c666
commit 5e091852c4
5 changed files with 38 additions and 16 deletions
+6
View File
@@ -144,6 +144,12 @@ void populate_state_from_config(shared_ptr<ServerState> s,
s->run_dns_server = true;
}
try {
s->allow_unregistered_users = d.at("AllowUnregisteredUsers")->as_bool();
} catch (const out_of_range&) {
s->allow_unregistered_users = true;
}
try {
bool run_shell = d.at("RunInteractiveShell")->as_bool();
s->run_shell_behavior = run_shell ?