Allow dns hook to fail a resolve and add domains

This lets people with crap ISPs that resolve domains
that they shouldn't to use the game without
changing their DNS server
This commit is contained in:
Will Toohey
2019-11-17 15:08:25 +10:00
parent 9f933bb371
commit 4bc7eee909
3 changed files with 46 additions and 5 deletions

View File

@ -64,5 +64,20 @@ HRESULT dns_platform_hook_init(const struct dns_config *cfg)
return hr;
}
// if your ISP resolves bad domains, it will kill the network. These 2
// *cannot* resolve
hr = dns_hook_push(L"mobirouter.loc", NULL);
if (FAILED(hr)) {
return hr;
}
hr = dns_hook_push(L"dslrouter.loc", NULL);
if (FAILED(hr)) {
return hr;
}
return S_OK;
}