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 <edtanous@google.com>
Change-Id: Id1ecc3911fc502d436a3e6aa29024628fc51aff4
diff --git a/include/nbd_proxy.hpp b/include/nbd_proxy.hpp
index 5de3039..5540886 100644
--- a/include/nbd_proxy.hpp
+++ b/include/nbd_proxy.hpp
@@ -289,7 +289,7 @@
}
if ((endpointValue != nullptr) && (socketValue != nullptr) &&
- *endpointValue == conn.req.target())
+ *endpointValue == conn.url().path())
{
endpointObjectPath = &objectPath.str;
break;
@@ -305,7 +305,7 @@
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");