From 77022ce13c30c9c7c69707d81377163a7222da63 Mon Sep 17 00:00:00 2001 From: Vitaly Drogan Date: Tue, 12 Nov 2024 14:01:47 +0100 Subject: [PATCH] set peer name to "local-requset" for local requests --- proxy/receiver_api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/receiver_api.go b/proxy/receiver_api.go index 8286028..4639bd4 100644 --- a/proxy/receiver_api.go +++ b/proxy/receiver_api.go @@ -78,6 +78,7 @@ func (prx *ReceiverProxy) LocalJSONRPCHandler(maxRequestBodySizeBytes int64) (*r func (prx *ReceiverProxy) ValidateSigner(ctx context.Context, req *ParsedRequest, publicEndpoint bool) error { req.signer = rpcserver.GetSigner(ctx) if !publicEndpoint { + req.peerName = "local-request" return nil }