Fix: don't use proxy for incoming connections
This commit is contained in:
+1
-1
@@ -779,7 +779,7 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::on_new_client(uv_stream_t* server
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (owner->m_socks5Proxy.empty()) {
|
if (client->m_isIncoming || owner->m_socks5Proxy.empty()) {
|
||||||
if (!client->on_connect()) {
|
if (!client->on_connect()) {
|
||||||
client->close();
|
client->close();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user