mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 19:55:27 +02:00
Add a new IPV4 direct DNS lookup function. Allows us to use the configured DNS directly.
This commit is contained in:
@@ -100,6 +100,12 @@ int NetResolver_StartNtoA(u32 resolverId, u32 hostnamePtr, u32 inAddrPtr, int ti
|
||||
hostname = alias;
|
||||
}
|
||||
|
||||
/*
|
||||
// Try the new resolver, that hits the configured primary and secondary DNSs.
|
||||
uint32_t raw_ip = net::RawDNSLookupIPV4(g_Config.primaryDNSServer.c_str(), hostname.c_str());
|
||||
|
||||
Memory::Write_U32(raw_ip, inAddrPtr);
|
||||
*/
|
||||
// Attempt to execute a DNS resolution
|
||||
if (!net::DNSResolve(hostname, "", &resolved, err)) {
|
||||
// TODO: Return an error based on the outputted "err" (unfortunately it's already converted to string)
|
||||
|
||||
Reference in New Issue
Block a user