diff --git a/src/ConnectionManager.cpp b/src/ConnectionManager.cpp index a4c76a2..197b863 100644 --- a/src/ConnectionManager.cpp +++ b/src/ConnectionManager.cpp @@ -138,14 +138,14 @@ namespace eipScanner { sockAddrBuffer >> endPoint; if (endPoint.getHost() == "0.0.0.0") { - ioConnection->_socket = std::make_unique( + ioConnection->_socket = std::make_unique( si->getRemoteEndPoint().getHost(), endPoint.getPort()); } else { - ioConnection->_socket = std::make_unique(endPoint); + ioConnection->_socket = std::make_unique(endPoint); } } else { - ioConnection->_socket = std::make_unique(si->getRemoteEndPoint().getHost(), EIP_DEFAULT_IMPLICIT_PORT); + ioConnection->_socket = std::make_unique(si->getRemoteEndPoint().getHost(), EIP_DEFAULT_IMPLICIT_PORT); } Logger(LogLevel::INFO) << "Open UDP socket to send data to "