Fixed calls to DNS::Resolve.

This commit is contained in:
Arron David Nelson 2024-02-01 17:34:21 -08:00
parent e48a3fd750
commit 57c806ee8c
4 changed files with 4 additions and 4 deletions

View File

@ -213,7 +213,7 @@ namespace ehs
return;
remoteHostName = address;
remoteAddr = DNS::Resolve(addrType, address);
remoteAddr = DNS::Resolve(address);
remotePort = port;
if (addrType == AddrType::IPV6)

View File

@ -42,7 +42,7 @@ namespace ehs
TCP server(AddrType::IPV4);
server.Initialize();
server.Bind(DNS::Resolve(server.GetAddressType(), "localhost"), 65534);
server.Bind(DNS::Resolve("localhost"), 65534);
server.Listen();
System::OpenURI(uri);

View File

@ -39,7 +39,7 @@ namespace ehs
scopesFinal;
TCP server(AddrType::IPV4);
server.Bind(DNS::Resolve(client.GetAddressType(), "localhost"), 65535);
server.Bind(DNS::Resolve("localhost"), 65535);
server.Listen();
System::OpenURI(uri);

View File

@ -54,7 +54,7 @@ namespace ehs
return;
client = TCP(ehs::AddrType::IPV4);
client.Connect(DNS::Resolve(AddrType::IPV4, "irc.chat.twitch.tv"), 6667);
client.Connect(DNS::Resolve("irc.chat.twitch.tv"), 6667);
client.SetBlocking(false);
Str_8 r("PASS oauth:" + token + "\r\n");