From f5dddd691100f11a7b3ae428f8ede11e00fdfce3 Mon Sep 17 00:00:00 2001 From: Cory Date: Tue, 15 Nov 2022 13:46:34 -0500 Subject: [PATCH] Fixed "undefined reference to 'dhcp_set_dns()'" Fixed "undefined reference to 'dhcp_set_dns()'" --- ESP8266_Router_Honeypot.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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),