示例#1
0
 /**
  * Sets a list of trusted proxies.
  *
  * You should only list the reverse proxies that you manage directly.
  *
  * @param array $proxies A list of trusted proxies
  *
  * @api
  */
 public static function setTrustedProxies(array $proxies)
 {
     self::$trustedProxies = $proxies;
 }
示例#2
0
 /**
  * Sets a list of trusted proxies.
  *
  * You should only list the reverse proxies that you manage directly.
  *
  * @param array $proxies A list of trusted proxies
  *
  * @api
  */
 public static function setTrustedProxies(array $proxies)
 {
     self::$trustedProxies = $proxies;
     self::$trustProxy = $proxies ? true : false;
 }