소스 검색

TrustProxies natively supports , strings

asonix 5 년 전
부모
커밋
64af65e992
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      config/trustedproxy.php

+ 1 - 9
config/trustedproxy.php

@@ -1,13 +1,5 @@
 <?php
 
-$proxyString = env('TRUST_PROXIES', '');
-
-if ($proxyString == '*' || $proxyString == '**') {
-    $proxies = $proxyString;
-} else {
-    $proxies = explode(',', $proxyString);
-}
-
 return [
     /*
      * Set trusted proxy IP addresses.
@@ -31,5 +23,5 @@ return [
      * how many proxies that client's request has
      * subsequently passed through.
      */
-    'proxies' => $proxies,
+    'proxies' => env('TRUST_PROXIES', ''),
 ];