#6178 Check if we should use secure socket for listening

This commit is contained in:
Jerry (Xinyu Hou) 2018-03-21 11:26:06 +00:00
parent 0ef8838e88
commit 5697da164b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ ClientListener::ClientListener(const NetworkAddress& address,
assert(m_socketFactory != NULL);
try {
m_listen = m_socketFactory->createListen(ARCH->getAddrFamily(address.getAddress()));
m_listen = m_socketFactory->createListen(m_useSecureNetwork, ARCH->getAddrFamily(address.getAddress()));
// setup event handler
m_events->adoptHandler(m_events->forIListenSocket().connecting(),