Skip to content

Commit

Permalink
[Profiler]Use the abstract method to get client IP
Browse files Browse the repository at this point in the history
  • Loading branch information
armetiz committed Sep 17, 2012
1 parent 87065dc commit de6658b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Profiler/Profiler.php
Expand Up @@ -165,7 +165,7 @@ public function collect(Request $request, Response $response, \Exception $except
$profile = new Profile(uniqid());
$profile->setTime(time());
$profile->setUrl($request->getUri());
$profile->setIp($request->server->get('REMOTE_ADDR'));
$profile->setIp($request->getClientIp());

$response->headers->set('X-Debug-Token', $profile->getToken());

Expand Down

0 comments on commit de6658b

Please sign in to comment.