WiFiManager icon indicating copy to clipboard operation
WiFiManager copied to clipboard

Force remove DNS input from Captive portal

Open JuniorLopasso opened this issue 3 months ago • 0 comments

Basic Infos

Hardware

WiFimanager Branch/Release: Master

Esp8266/Esp32: Esp32

Hardware: ESP32-WROOM-32-D

Core Version: 2.0.14

Description

I needed to inherit the Wifimanager class in my project and saw a problem when I tried to force the IP fields to be disabled.

On line 2968 of the WiFiManager.cpp file, I think someone forgot to add an “else” statement at the beginning of the line.

It is: _staShowDns = alwaysShow? 1: 0;

and it should be: else _staShowDns = alwaysShow? 1: 0;

I hope I helped you with this.

Settings in IDE

Module: NodeMcu

Additional libraries: knolleary/PubSubClient@^2.8 bblanchon/ArduinoJson@^6.21.2

Sketch

---

Debug Messages

---

JuniorLopasso avatar Apr 10 '24 18:04 JuniorLopasso