コード例 #1
0
ファイル: Request.php プロジェクト: mesushan/FirstRepo
 /**
  * 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
ファイル: Request.php プロジェクト: joan16v/symfony2_test
 /**
  * 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;
 }