mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 08:17:55 +00:00
Fix: don't use proxy for incoming connections
This commit is contained in:
parent
989a28a8ca
commit
e92cc7d50c
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::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;
|
||||
|
|
Loading…
Reference in a new issue