From e533f87d08da4ae39cc9051a8f1f7a46a6613934 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Tue, 19 Sep 2023 23:42:10 +0200 Subject: [PATCH] Fix disabling connecting to own node from web interface --- src/lib/webserver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/webserver.cpp b/src/lib/webserver.cpp index 94cdd22..720d75c 100644 --- a/src/lib/webserver.cpp +++ b/src/lib/webserver.cpp @@ -279,6 +279,9 @@ void onApiSettingsPost(AsyncWebServerRequest *request) preferences.putString(v.c_str(), pv->value().c_str()); } } + } else { + preferences.putBool("useNode", false); + settingsChanged = true; } request->send(200);