Fixed calls to DNS::Resolve.
This commit is contained in:
parent
e48a3fd750
commit
57c806ee8c
@ -213,7 +213,7 @@ namespace ehs
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
remoteHostName = address;
|
remoteHostName = address;
|
||||||
remoteAddr = DNS::Resolve(addrType, address);
|
remoteAddr = DNS::Resolve(address);
|
||||||
remotePort = port;
|
remotePort = port;
|
||||||
|
|
||||||
if (addrType == AddrType::IPV6)
|
if (addrType == AddrType::IPV6)
|
||||||
|
@ -42,7 +42,7 @@ namespace ehs
|
|||||||
|
|
||||||
TCP server(AddrType::IPV4);
|
TCP server(AddrType::IPV4);
|
||||||
server.Initialize();
|
server.Initialize();
|
||||||
server.Bind(DNS::Resolve(server.GetAddressType(), "localhost"), 65534);
|
server.Bind(DNS::Resolve("localhost"), 65534);
|
||||||
server.Listen();
|
server.Listen();
|
||||||
|
|
||||||
System::OpenURI(uri);
|
System::OpenURI(uri);
|
||||||
|
@ -39,7 +39,7 @@ namespace ehs
|
|||||||
scopesFinal;
|
scopesFinal;
|
||||||
|
|
||||||
TCP server(AddrType::IPV4);
|
TCP server(AddrType::IPV4);
|
||||||
server.Bind(DNS::Resolve(client.GetAddressType(), "localhost"), 65535);
|
server.Bind(DNS::Resolve("localhost"), 65535);
|
||||||
server.Listen();
|
server.Listen();
|
||||||
|
|
||||||
System::OpenURI(uri);
|
System::OpenURI(uri);
|
||||||
|
@ -54,7 +54,7 @@ namespace ehs
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
client = TCP(ehs::AddrType::IPV4);
|
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);
|
client.SetBlocking(false);
|
||||||
|
|
||||||
Str_8 r("PASS oauth:" + token + "\r\n");
|
Str_8 r("PASS oauth:" + token + "\r\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user