From 5ebb9d33056cbffd8ec0affc49ac9e439e0c4c9e Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Mon, 27 Feb 2023 18:20:47 -0800 Subject: Remove extra variables in websockets These variables don't need propagated to handlers. Any usage of them is incorrect. This makes Websocket once again a pure virtual class, which is desired. Signed-off-by: Ed Tanous Change-Id: Id1ecc3911fc502d436a3e6aa29024628fc51aff4 --- include/nbd_proxy.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/nbd_proxy.hpp b/include/nbd_proxy.hpp index 5de3039765..5540886419 100644 --- a/include/nbd_proxy.hpp +++ b/include/nbd_proxy.hpp @@ -289,7 +289,7 @@ inline void } if ((endpointValue != nullptr) && (socketValue != nullptr) && - *endpointValue == conn.req.target()) + *endpointValue == conn.url().path()) { endpointObjectPath = &objectPath.str; break; @@ -305,7 +305,7 @@ inline void for (const auto& session : sessions) { - if (session.second->getEndpointId() == conn.req.target()) + if (session.second->getEndpointId() == conn.url().path()) { BMCWEB_LOG_ERROR("Cannot open new connection - socket is in use"); conn.close("Slot is in use"); -- cgit v1.2.3