@@ -664,19 +664,9 @@ public function setSession(SessionInterface $session)
664
664
/**
665
665
* Returns the client IP addresses.
666
666
*
667
- * This method can read the client IP address from the "X-Forwarded-For" header
668
- * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
669
- * header value is a comma+space separated list of IP addresses, the left-most
670
- * being the original client, and each successive proxy that passed the request
671
- * adding the IP address where it received the request from.
672
- *
673
- * If your reverse proxy uses a different header name than "X-Forwarded-For",
674
- * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
675
- * the "client-ip" key.
676
- *
677
667
* @return array The client IP addresses
678
668
*
679
- * @see http://en.wikipedia.org/wiki/X-Forwarded-For
669
+ * @see getClientIp()
680
670
*/
681
671
public function getClientIps ()
682
672
{
@@ -702,9 +692,20 @@ public function getClientIps()
702
692
/**
703
693
* Returns the client IP address.
704
694
*
695
+ * This method can read the client IP address from the "X-Forwarded-For" header
696
+ * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
697
+ * header value is a comma+space separated list of IP addresses, the left-most
698
+ * being the original client, and each successive proxy that passed the request
699
+ * adding the IP address where it received the request from.
700
+ *
701
+ * If your reverse proxy uses a different header name than "X-Forwarded-For",
702
+ * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
703
+ * the "client-ip" key.
704
+ *
705
705
* @return string The client IP address
706
706
*
707
707
* @see getClientIps()
708
+ * @see http://en.wikipedia.org/wiki/X-Forwarded-For
708
709
*
709
710
* @api
710
711
*/
0 commit comments