From 47342ed6f7f7bea141b94a6e840f20d46818ca02 Mon Sep 17 00:00:00 2001 From: Jack <117357252+jackoske@users.noreply.github.com> Date: Wed, 11 Dec 2024 04:02:41 +0100 Subject: [PATCH] Force remove DNS input from Captive portal issue #1733 (#1745) --- WiFiManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 708168be..bdc31e95 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -2966,7 +2966,7 @@ void WiFiManager::setShowStaticFields(boolean alwaysShow){ */ void WiFiManager::setShowDnsFields(boolean alwaysShow){ if(_disableIpFields) _staShowDns = alwaysShow ? 1 : -1; - _staShowDns = alwaysShow ? 1 : 0; + else _staShowDns = alwaysShow ? 1 : 0; } /**