From 4641666c729f615b95e359583b7a01bc2f53df33 Mon Sep 17 00:00:00 2001 From: Nicholas Tramp Date: Wed, 11 Oct 2023 12:22:59 -0500 Subject: [PATCH] create UDPBoundSocket in forwardOpen --- src/ConnectionManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 "