mead 1 mês atrás
pai
commit
f27cbc05cc
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      app/Support/helpers.php

+ 1 - 2
app/Support/helpers.php

@@ -336,8 +336,7 @@ function getClientIp()
 {
     if (getenv('HTTP_CLIENT_IP')) {
         $ip = getenv('HTTP_CLIENT_IP');
-    }
-    if (getenv('HTTP_X_REAL_IP')) {
+    } elseif (getenv('HTTP_X_REAL_IP')) {
         $ip = getenv('HTTP_X_REAL_IP');
     } elseif (getenv('HTTP_X_FORWARDED_FOR')) {
         $ip = getenv('HTTP_X_FORWARDED_FOR');