Explorar el Código

Fix previous commit

Jordi Boggiano hace 11 años
padre
commit
5b48abe833
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/Composer/Util/NoProxyPattern.php

+ 3 - 1
src/Composer/Util/NoProxyPattern.php

@@ -77,8 +77,10 @@ class NoProxyPattern
                     // it must be proxied to let the proxy's DNS resolve it
                     if ($ip === $host) {
                         $match = false;
+                    } else {
+                        // match resolved IP against the rule
+                        $match = self::inCIDRBlock($ruleHost, $ip);
                     }
-                    $match = self::inCIDRBlock($ruleHost, $ip);
                 }
             } else {
                 // match end of domain