Author: bdubbs
Date: Wed Apr  8 22:30:03 2020
New Revision: 22976

Log:
Prefer ipv4 when fetching most data

Modified:
   trunk/scripts/blfs-chapter20.php
   trunk/scripts/blfs-include.php

Modified: trunk/scripts/blfs-chapter20.php
==============================================================================
--- trunk/scripts/blfs-chapter20.php    Wed Apr  8 15:15:57 2020        (r22975)
+++ trunk/scripts/blfs-chapter20.php    Wed Apr  8 22:30:03 2020        (r22976)
@@ -151,7 +151,7 @@
      }
 
      $lines = http_get_file( $dirpath );
-print_r($lines);
+//print_r($lines);
      if ( ! is_array( $lines ) ) return $lines;
   } // End fetch
 

Modified: trunk/scripts/blfs-include.php
==============================================================================
--- trunk/scripts/blfs-include.php      Wed Apr  8 15:15:57 2020        (r22975)
+++ trunk/scripts/blfs-include.php      Wed Apr  8 22:30:03 2020        (r22976)
@@ -160,7 +160,7 @@
          preg_match( "/docutils/", $url    ) ||
          preg_match( "/expect/", $url      ) ) 
   {
-     exec( "curl -L -s -m40 -A Firefox/41.0 $url", $dir );
+     exec( "curl -4 -L -s -m40 -A Firefox/41.0 $url", $dir );
      $s   = implode( "\n", $dir );
      $dir = strip_tags( $s );
      $strip =  explode( "\n", $dir );
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to