From e92cc7d50c9db205bcd449cbc69293e72267e4bf Mon Sep 17 00:00:00 2001 From: SChernykh Date: Tue, 6 Sep 2022 15:59:05 +0200 Subject: [PATCH] Fix: don't use proxy for incoming connections --- src/tcp_server.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcp_server.inl b/src/tcp_server.inl index daed8f8..4c21651 100644 --- a/src/tcp_server.inl +++ b/src/tcp_server.inl @@ -779,7 +779,7 @@ void TCPServer::on_new_client(uv_stream_t* server return; } - if (owner->m_socks5Proxy.empty()) { + if (client->m_isIncoming || owner->m_socks5Proxy.empty()) { if (!client->on_connect()) { client->close(); return;