diff --git a/ESP8266_Router_Honeypot.ino b/ESP8266_Router_Honeypot.ino index 2d02262..f48f491 100644 --- a/ESP8266_Router_Honeypot.ino +++ b/ESP8266_Router_Honeypot.ino @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #define NAPT 1000 @@ -72,8 +72,8 @@ void setup() { WiFi.dnsIP(1).toString().c_str()); // give DNS servers to AP side - dhcps_set_dns(0, WiFi.dnsIP(0)); - dhcps_set_dns(1, WiFi.dnsIP(1)); + dhcpSoftAP.dhcps_set_dns(0, WiFi.dnsIP(0)); + dhcpSoftAP.dhcps_set_dns(1, WiFi.dnsIP(1)); WiFi.softAPConfig( // enable AP, with android-compatible google domain IPAddress(172, 217, 28, 254),