Skip to content

Commit bbc2f11

Browse files
committed
fix code block
Indent the complete block with three more spaces so that it is aligned properly inside the surrounding list item. Move placeholder comment to the right place.
1 parent 6943da8 commit bbc2f11

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/request/load_balancer_reverse_proxy.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ In this case, you'll need to - *very carefully* - trust *all* proxies.
8181
proxies, configure Symfony to *always* trust incoming request. This is
8282
done inside of your front controller::
8383

84-
// web/app.php
85-
// ...
84+
// web/app.php
8685

87-
Request::setTrustedProxies(array($request->server->get('REMOTE_ADDR')));
86+
// ...
87+
Request::setTrustedProxies(array($request->server->get('REMOTE_ADDR')));
8888

89-
$response = $kernel->handle($request);
90-
// ...
89+
$response = $kernel->handle($request);
90+
// ...
9191

9292
That's it! It's critical that you prevent traffic from all non-trusted sources.
9393
If you allow outside traffic, they could "spoof" their true IP address and

0 commit comments

Comments
 (0)