Skip to content

Commit

Permalink
update jsonrpsee
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 committed Aug 7, 2024
1 parent 1f8c0ea commit 3f79ee0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions substrate/client/rpc-servers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ where
let rpc_middleware = RpcServiceBuilder::new()
.rpc_logger(1024)
.option_layer(middleware_layer.clone());
let remote_addr = (get_proxy_ip(&req).unwrap_or(ip), 0).into();
let ip_addr = get_proxy_ip(&req).unwrap_or(ip);
let mut svc =
service_builder.set_rpc_middleware(rpc_middleware).build(methods, stop_handle, remote_addr);
service_builder.set_ip_addr(ip_addr).set_rpc_middleware(rpc_middleware).build(methods, stop_handle);

async move {
if is_websocket {
Expand Down

0 comments on commit 3f79ee0

Please sign in to comment.