fixup! feat(nncs): Add DNS patches for NNCS hook

Patches shouldn't do anything if not on the network, obvs
This commit is contained in:
Ash Logan 2024-04-07 16:18:46 +10:00
parent 3bb9359da0
commit 283dba27a6

View File

@ -14,7 +14,7 @@ const std::pair<const char *, const char *> dns_replacements[] = {
static const char * replace_dns_name(const char *dns_name) {
DEBUG_FUNCTION_LINE("DNS request for %s", dns_name);
// if (!Config::connect_to_network) return dns_name;
if (!Config::connect_to_network) return dns_name;
for (auto [original, replacement] : dns_replacements) {
if (strcmp(original, dns_name) == 0)