Skip to content

Commit f491418

Browse files
Serhii Polishchukxabbuh
Serhii Polishchuk
authored andcommitted
Remove deprecated proxy argument
1 parent b02829e commit f491418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create_framework/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ explicitly trust your reverse proxies by calling ``setTrustedProxies()``::
258258

259259
Request::setTrustedProxies(array('10.0.0.1'));
260260

261-
if ($myIp === $request->getClientIp(true)) {
261+
if ($myIp === $request->getClientIp()) {
262262
// the client is a known one, so give it some more privilege
263263
}
264264

0 commit comments

Comments
 (0)