Skip to content

Commit

Permalink
Renamed connect_host to start_connect_host
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Oct 4, 2023
1 parent 9aaba37 commit 0fdf6a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ namespace proxy {
if (command == SOCKS_CMD_CONNECT)
{
// 连接目标主机.
co_await connect_host(
co_await start_connect_host(
domain, port, ec, atyp == SOCKS5_ATYP_DOMAINNAME);
}
else if (command == SOCKS5_CMD_UDP)
Expand Down Expand Up @@ -1127,9 +1127,9 @@ namespace proxy {
if (command == SOCKS_CMD_CONNECT)
{
if (socks4a)
co_await connect_host(hostname, port, ec, true);
co_await start_connect_host(hostname, port, ec, true);
else
co_await connect_host(
co_await start_connect_host(
dst_endpoint.address().to_string(),
port,
ec);
Expand Down Expand Up @@ -1289,7 +1289,7 @@ namespace proxy {
std::string host(target_view.substr(0, pos));
std::string port(target_view.substr(pos + 1));

co_await connect_host(host,
co_await start_connect_host(host,
static_cast<uint16_t>(std::atol(port.c_str())), ec, true);
if (ec)
{
Expand Down Expand Up @@ -1516,7 +1516,7 @@ namespace proxy {
}
}

inline net::awaitable<void> connect_host(
inline net::awaitable<void> start_connect_host(
std::string target_host, uint16_t target_port,
boost::system::error_code& ec, bool resolve = false)
{
Expand Down

0 comments on commit 0fdf6a8

Please sign in to comment.