mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-29 06:06:40 +00:00
Remove DNS server
This commit is contained in:
parent
bde590394d
commit
741eb0ca64
@ -20,7 +20,7 @@
|
|||||||
static WiFiEventHandler gotIpEventHandler, disconnectedEventHandler;
|
static WiFiEventHandler gotIpEventHandler, disconnectedEventHandler;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#include "DNSserver.h"
|
//#include "DNSserver.h"
|
||||||
|
|
||||||
#ifdef USE_CONFIG_OVERRIDE
|
#ifdef USE_CONFIG_OVERRIDE
|
||||||
#include "user_config_override.h"
|
#include "user_config_override.h"
|
||||||
@ -38,7 +38,7 @@ std::string wifiPassword = "";
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
const byte DNS_PORT = 53;
|
const byte DNS_PORT = 53;
|
||||||
DNSServer dnsServer;
|
// DNSServer dnsServer;
|
||||||
|
|
||||||
// long wifiPrevMillis = 0;
|
// long wifiPrevMillis = 0;
|
||||||
// bool wifiWasConnected = false;
|
// bool wifiWasConnected = false;
|
||||||
@ -69,7 +69,7 @@ void wifiConnected(IPAddress ipaddress)
|
|||||||
|
|
||||||
if(isConnected) {
|
if(isConnected) {
|
||||||
httpReconnect();
|
httpReconnect();
|
||||||
// mqttReconnect();
|
mqttReconnect();
|
||||||
haspReconnect();
|
haspReconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -143,14 +143,14 @@ void wifiSetup(JsonObject settings)
|
|||||||
IPAddress IP = WiFi.softAPIP();
|
IPAddress IP = WiFi.softAPIP();
|
||||||
|
|
||||||
/* Setup the DNS server redirecting all the domains to the apIP */
|
/* Setup the DNS server redirecting all the domains to the apIP */
|
||||||
dnsServer.setErrorReplyCode(DNSReplyCode::NoError);
|
// dnsServer.setErrorReplyCode(DNSReplyCode::NoError);
|
||||||
dnsServer.start(DNS_PORT, "*", IP);
|
// dnsServer.start(DNS_PORT, "*", apIP);
|
||||||
|
|
||||||
sprintf_P(buffer, PSTR("WIFI: Setting up temporary Access Point: %s"), apSsdid.c_str());
|
sprintf_P(buffer, PSTR("WIFI: Setting up temporary Access Point: %s"), apSsdid.c_str());
|
||||||
debugPrintln(buffer);
|
debugPrintln(buffer);
|
||||||
sprintf_P(buffer, PSTR("WIFI: AP IP address : %s"), IP.toString().c_str());
|
sprintf_P(buffer, PSTR("WIFI: AP IP address : %s"), IP.toString().c_str());
|
||||||
debugPrintln(buffer);
|
debugPrintln(buffer);
|
||||||
// haspDisplayAP(apSsdid.c_str(), "haspadmin");
|
haspDisplayAP(apSsdid.c_str(), "haspadmin");
|
||||||
httpReconnect();
|
httpReconnect();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user