From f7a78d85e3f550fdd7637825e78f2d2eab26c22b Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com> Date: Tue, 26 Oct 2021 17:11:40 -0400 Subject: [PATCH] Pass IP address to API Client pipeline (#3124) The `ProcessIp` middleware won't run twice as that's in the global middleware stack, which the API client doesn't go through. --- src/Api/Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Api/Client.php b/src/Api/Client.php index 237c03b91..457ec41ac 100644 --- a/src/Api/Client.php +++ b/src/Api/Client.php @@ -132,6 +132,7 @@ class Client if ($this->parent) { $request = $request + ->withAttribute('ipAddress', $this->parent->getAttribute('ipAddress')) ->withAttribute('session', $this->parent->getAttribute('session')); $request = RequestUtil::withActor($request, RequestUtil::getActor($this->parent)); }