Fixed calls to DNS::Resolve.
This commit is contained in:
parent
e48a3fd750
commit
57c806ee8c
@ -213,7 +213,7 @@ namespace ehs
|
||||
return;
|
||||
|
||||
remoteHostName = address;
|
||||
remoteAddr = DNS::Resolve(addrType, address);
|
||||
remoteAddr = DNS::Resolve(address);
|
||||
remotePort = port;
|
||||
|
||||
if (addrType == AddrType::IPV6)
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user