summaryrefslogtreecommitdiffstats
path: root/source/ListenThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/ListenThread.cpp')
-rw-r--r--source/ListenThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ListenThread.cpp b/source/ListenThread.cpp
index eaf60c4de..3013f8cbf 100644
--- a/source/ListenThread.cpp
+++ b/source/ListenThread.cpp
@@ -214,7 +214,7 @@ void cListenThread::Execute(void)
{
if (FD_ISSET(itr->GetSocket(), &fdRead))
{
- cSocket Client = itr->Accept();
+ cSocket Client = (m_Family == cSocket::IPv4) ? itr->AcceptIPv4() : itr->AcceptIPv6();
m_Callback.OnConnectionAccepted(Client);
}
} // for itr - m_Sockets[]