Commit:    ca968d3f275ed05321b57c41328bbadc06339ad9
Author:    Hannes Magnusson <[email protected]>         Fri, 12 Jun 2015 10:55:08 
-0700
Parents:   1be7e9163ced24544f6dcdc1385ff841473cb721
Branches:  master

Link:       
http://git.php.net/?p=web/master.git;a=commitdiff;h=ca968d3f275ed05321b57c41328bbadc06339ad9

Log:
Hardcodish US mirrors by east/west coast

Changed paths:
  M  scripts/mirror-test


Diff:
diff --git a/scripts/mirror-test b/scripts/mirror-test
index 6e6fc5e..c38b31e 100755
--- a/scripts/mirror-test
+++ b/scripts/mirror-test
@@ -376,8 +376,22 @@ function geoDNS($HOSTS) {
        if (!$GEOLIST) {
                p("Not updating EasyDNS GeoDNS, couldn't get the list!\n");
        }
+
+       /* We don't monitor php-web2, need to hard code it */
        $HOSTS["php-web2.php.net."] = "North America";
 
+       /* Special cases for US mirrors -- register them by coast, not 
country.. */
+       $rewrites = array(
+               "php-mirror.nexcess.net." => "NA East",
+               "php.he.net."             => "NA West",
+               "phpnet.c7dc.com."        => "NA West",
+       );
+       foreach($rewrites as $cname => $geoid) {
+               if (!empty($HOSTS[$cname])) {
+                       $HOSTS[$cname] = $geoid;
+               }
+       }
+
        /* Remove disabled hosts */
        $GEO = array();
        foreach($GEOLIST["data"] as $k => $entry) {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to