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);