Added option to disable update check. #255

This commit is contained in:
Robert Strouse 2024-01-31 10:14:33 -08:00
parent a81d1b843d
commit 8bdfd214b5
8 changed files with 23 additions and 7 deletions

View file

@ -2212,10 +2212,10 @@ void Web::begin() {
HTTPMethod method = server.method();
if (method == HTTP_POST || method == HTTP_PUT) {
// Parse out all the inputs.
if (obj.containsKey("hostname") || obj.containsKey("ssdpBroadcast")) {
if (obj.containsKey("hostname") || obj.containsKey("ssdpBroadcast") || obj.containsKey("checkForUpdate")) {
settings.fromJSON(obj);
settings.save();
net.updateHostname();
if(obj.containsKey("hostname")) net.updateHostname();
}
if (obj.containsKey("ntpServer") || obj.containsKey("ntpServer")) {
settings.NTP.fromJSON(obj);