mirror of https://github.com/aredn/aredn.git
Make uilock configurable (#1747)
This commit is contained in:
parent
4cdfa79ea0
commit
b074727492
|
@ -42,6 +42,7 @@ export let resourcehash = true;
|
|||
export let authenable = true;
|
||||
export let forceauth = false;
|
||||
export let forcemobile = false;
|
||||
export let uilock = true;
|
||||
|
||||
if (hardware.isLowMemNode()) {
|
||||
preload = false;
|
||||
|
|
|
@ -554,7 +554,7 @@ global.handle_request = function(env)
|
|||
const isMobile = !!(config.forcemobile || match(env.HTTP_USER_AGENT, /iphone/i) || match(env.HTTP_USER_AGENT, /android.*mobile/i));
|
||||
let res = "";
|
||||
let changelock = null;
|
||||
if (env.REQUEST_METHOD !== "GET") {
|
||||
if (config.uilock && env.REQUEST_METHOD !== "GET") {
|
||||
changelock = fs.open(lockfile);
|
||||
if (!(changelock && changelock.lock("x"))) {
|
||||
uhttpd.send("Status: 500 Internal server error\r\n\r\n");
|
||||
|
|
Loading…
Reference in New Issue