From 57c806ee8c5b71265579ac0f7953c04fb9312649 Mon Sep 17 00:00:00 2001 From: karutoh Date: Thu, 1 Feb 2024 17:34:21 -0800 Subject: [PATCH] Fixed calls to DNS::Resolve. --- src/io/socket/TCP_BSD.cpp | 2 +- src/io/socket/rest/Spotify.cpp | 2 +- src/io/socket/rest/Twitch.cpp | 2 +- src/io/socket/rest/TwitchChat.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/io/socket/TCP_BSD.cpp b/src/io/socket/TCP_BSD.cpp index ebdf889..3ec2998 100644 --- a/src/io/socket/TCP_BSD.cpp +++ b/src/io/socket/TCP_BSD.cpp @@ -213,7 +213,7 @@ namespace ehs return; remoteHostName = address; - remoteAddr = DNS::Resolve(addrType, address); + remoteAddr = DNS::Resolve(address); remotePort = port; if (addrType == AddrType::IPV6) diff --git a/src/io/socket/rest/Spotify.cpp b/src/io/socket/rest/Spotify.cpp index 044c503..2571c98 100644 --- a/src/io/socket/rest/Spotify.cpp +++ b/src/io/socket/rest/Spotify.cpp @@ -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); diff --git a/src/io/socket/rest/Twitch.cpp b/src/io/socket/rest/Twitch.cpp index 9145f75..a056917 100644 --- a/src/io/socket/rest/Twitch.cpp +++ b/src/io/socket/rest/Twitch.cpp @@ -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); diff --git a/src/io/socket/rest/TwitchChat.cpp b/src/io/socket/rest/TwitchChat.cpp index 49aa3e2..257a469 100644 --- a/src/io/socket/rest/TwitchChat.cpp +++ b/src/io/socket/rest/TwitchChat.cpp @@ -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");