diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index 98c9936193..1f8a533a30 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -1685,10 +1685,12 @@ inline bool isAllowedIP(const crow::Request& req) { std::string ipStr = req.ipAddress.to_string(); // IP of the USB vNIC - constexpr std::string_view allowedIp = "192.168.31.2"; + constexpr std::string_view allowedIp1 = "192.168.31.1"; + constexpr std::string_view allowedIp2 = "192.168.31.2"; // Check if the IP string contains the allowed IP - if (ipStr.find(allowedIp) == std::string::npos) + if (ipStr.find(allowedIp1) == std::string::npos && + ipStr.find(allowedIp2) == std::string::npos) { BMCWEB_LOG_ERROR("Unmatched IP: {} ", ipStr); return false; @@ -1698,7 +1700,6 @@ inline bool isAllowedIP(const crow::Request& req) inline void requestRoutesJournalEventLogEntryPost(App& app) { - BMCWEB_LOG_ERROR("Entred: requestRoutesEventLogEntriesPost"); BMCWEB_ROUTE(app, "/redfish/v1/Systems//LogServices/EventLog") .privileges(redfish::privileges::postLogEntry) .methods(boost::beast::http::verb::post)( @@ -1752,7 +1753,6 @@ inline void requestRoutesJournalEventLogEntryPost(App& app) inline void requestRoutesDBusEventLogEntryPost(App& app) { - BMCWEB_LOG_ERROR("Entred: requestRoutesEventLogEntriesPost"); BMCWEB_ROUTE(app, "/redfish/v1/Systems//LogServices/EventLog") .privileges(redfish::privileges::postLogEntry) .methods(boost::beast::http::verb::post)(