mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
update proxy conditions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <reporting/server/session.h>
|
||||
#include <reporting/P2pProxy.h>
|
||||
|
||||
void
|
||||
fail(boost::beast::error_code ec, char const* what)
|
||||
@@ -17,7 +18,7 @@ buildResponse(
|
||||
BOOST_LOG_TRIVIAL(info) << "Received rpc command : " << request;
|
||||
boost::json::object response;
|
||||
|
||||
if (forwardCommands.find(command) != forwardCommands.end())
|
||||
if (shouldForwardToP2p(request))
|
||||
return etl.getETLLoadBalancer().forwardToP2p(request);
|
||||
|
||||
switch (commandMap[command])
|
||||
|
||||
Reference in New Issue
Block a user