Skip to content

Commit

Permalink
Update ksWifiConnector.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 authored Jul 1, 2024
1 parent f592506 commit 26b7808
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ksf/comp/ksWifiConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ namespace ksf::comps
inline void overrideDnsWithGoogleDns()
{
/* Define override DNS addresses. */
static const IPAddress primaryDns{LWIP_MAKEU32(8, 8, 8, 8)};
static const IPAddress secondaryDns{LWIP_MAKEU32(8, 8, 4, 4)};
static const ip_addr primaryDns{LWIP_MAKEU32(8, 8, 8, 8)};
static const ip_addr secondaryDns{LWIP_MAKEU32(8, 8, 4, 4)};

/* Set DNS servers. */
WiFi.setDNS(primaryDns, secondaryDns);
dns_setserver(0, &primaryDns);
dns_setserver(1, &secondaryDns);
}

ksWifiConnector::ksWifiConnector(const char* hostname, bool savePower)
Expand Down

0 comments on commit 26b7808

Please sign in to comment.