mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-26 16:40:17 +00:00
Forward client IP to rippled when proxying (#77)
This commit is contained in:
@@ -31,7 +31,7 @@ doServerInfo(Context const& context)
|
||||
info["counters"].as_object()["rpc"] = context.counters.report();
|
||||
}
|
||||
|
||||
auto serverInfoRippled = context.balancer->forwardToRippled(context.params);
|
||||
auto serverInfoRippled = context.balancer->forwardToRippled(context.params, context.clientIp);
|
||||
if (serverInfoRippled && !serverInfoRippled->contains("error"))
|
||||
response["info"].as_object()["load_factor"] = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user