forked from PretendoNetwork/Inkay
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:
parent
3bb9359da0
commit
283dba27a6
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ const std::pair<const char *, const char *> dns_replacements[] = {
|
||||||
static const char * replace_dns_name(const char *dns_name) {
|
static const char * replace_dns_name(const char *dns_name) {
|
||||||
DEBUG_FUNCTION_LINE("DNS request for %s", 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) {
|
for (auto [original, replacement] : dns_replacements) {
|
||||||
if (strcmp(original, dns_name) == 0)
|
if (strcmp(original, dns_name) == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue