[httpd] Add promiscuous mode option, i.e. no auth requirements

For people who want to avoid the web login, or want to get around pairing
problems. This is also added because commit #e59a1a1 means that all
Remotes are now subject to auth, not just those with a user-agent name that
starts with "Remote".
This commit is contained in:
ejurgensen
2017-10-29 00:05:20 +02:00
parent 8e7c47cce9
commit eff9e6ebeb
6 changed files with 26 additions and 9 deletions

View File

@@ -954,6 +954,9 @@ httpd_admin_check_auth(struct evhttp_request *req)
const char *passwd;
int ret;
if (cfg_getbool(cfg_getsec(cfg, "general"), "promiscuous_mode"))
return true;
passwd = cfg_getstr(cfg_getsec(cfg, "general"), "admin_password");
if (passwd)
{