diff --git a/files/app/config.uc b/files/app/config.uc index 07bdf722..4b304c35 100755 --- a/files/app/config.uc +++ b/files/app/config.uc @@ -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; diff --git a/files/app/root.ut b/files/app/root.ut index 473ee6f2..bf765c60 100644 --- a/files/app/root.ut +++ b/files/app/root.ut @@ -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");