From 11c6b89ed92a912cfe7988caac78d4d75de0fa18 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 22 Aug 2023 16:31:19 -0400 Subject: [PATCH] set the ip if null --- src/Route.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Route.php b/src/Route.php index 4e90f64..dc8da7f 100644 --- a/src/Route.php +++ b/src/Route.php @@ -32,6 +32,10 @@ public function site() public function toResponse($request) { + if (is_null($request->ip())) { + $request->server->add(['REMOTE_ADDR' => '0.0.0.0']); + } + $kernel = app(Kernel::class); $response = $kernel->handle($request); $kernel->terminate($request, $response);