diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/nbd_proxy.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |