From 5d64a8ca26551ede3f9b44b8f2b08aed6f524f0c Mon Sep 17 00:00:00 2001 From: sectapunterx Date: Sat, 23 Nov 2024 20:22:21 +0300 Subject: [PATCH] Successful connection using Connect() overload for proxy --- library/include/larra/client/client.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/include/larra/client/client.hpp b/library/include/larra/client/client.hpp index e712e0c..c302821 100644 --- a/library/include/larra/client/client.hpp +++ b/library/include/larra/client/client.hpp @@ -296,8 +296,6 @@ template auto ConnectToServer(Socket& socket, const ProxyType& proxy, std::string_view host, std::uint16_t port) -> boost::asio::awaitable { auto executor = co_await boost::asio::this_coro::executor; boost::asio::ip::tcp::resolver resolver(executor); - // auto endpoints = co_await resolver.async_resolve(proxy.hostname, std::to_string(proxy.port), boost::asio::use_awaitable); - // co_await boost::asio::async_connect(socket, endpoints, boost::asio::use_awaitable); if constexpr(!std::same_as) { auto endpoints = co_await resolver.async_resolve(proxy.hostname, std::to_string(proxy.port), boost::asio::use_awaitable);