Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Jul 2, 2024
2 parents 6906290 + 26b7808 commit c604337
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 c604337

Please sign in to comment.