diff --git a/create_framework/http_foundation.rst b/create_framework/http_foundation.rst index 85c8c2dfb10..08cb0d6d836 100644 --- a/create_framework/http_foundation.rst +++ b/create_framework/http_foundation.rst @@ -258,7 +258,7 @@ explicitly trust your reverse proxies by calling ``setTrustedProxies()``:: Request::setTrustedProxies(array('10.0.0.1')); - if ($myIp === $request->getClientIp(true)) { + if ($myIp === $request->getClientIp()) { // the client is a known one, so give it some more privilege }