Finished implementing, now for the testing phase.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
Str_8 DNS::Resolve(const AddrType type, const Str_8 &hostname)
|
||||
Str_8 DNS::Resolve(const IP type, const Str_8 &hostname)
|
||||
{
|
||||
WSADATA data = {};
|
||||
|
||||
@@ -20,9 +20,9 @@ namespace ehs
|
||||
addrinfo* result = nullptr;
|
||||
addrinfo req = {};
|
||||
|
||||
if (type == AddrType::IPV6)
|
||||
if (type == IP::V6)
|
||||
req.ai_family = AF_INET6;
|
||||
else if (type == AddrType::IPV4)
|
||||
else if (type == IP::V4)
|
||||
req.ai_family = AF_INET;
|
||||
|
||||
Int_32 code = getaddrinfo(hostname, nullptr, &req, &result);
|
||||
|
Reference in New Issue
Block a user