Parcourir la source

Fix previous commit

Jordi Boggiano il y a 11 ans
Parent
commit
5b48abe833
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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