cmodule2 SalterService > DynPrintLog { set flag NoNanoHTTPD. !include #1029545 // API for Eleu switchable S allowedIP; switchable S passwordLocation; O html(IWebRequest req) ctex { if (!eq(req.clientIP(), allowedIP)) ret "Not allowed"; if (empty(passwordLocation) || !fileExists(passwordLocation)) ret "Misconfigured"; ret md5(req.get("pw") + trimLoadTextFile(passwordLocation)); } }