#6178 Fix compiling error for adding IPv6 for secure socket

This commit is contained in:
Jerry (Xinyu Hou)
2018-03-20 16:05:30 +00:00
parent e01acb30b6
commit fa82f5cdf3
8 changed files with 384 additions and 15 deletions

View File

@@ -147,7 +147,7 @@ Client::connect()
}
// create the socket
IDataSocket* socket = m_socketFactory->create(ARCH->getAddrFamily(m_serverAddress.getAddress()));
IDataSocket* socket = m_socketFactory->create(m_useSecureNetwork, ARCH->getAddrFamily(m_serverAddress.getAddress()));
m_socket = dynamic_cast<TCPSocket*>(socket);
// filter socket messages, including a packetizing filter