File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 55
66$|  = 1;
77
8- my  @ips  = ` fetch -o - https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv | sed 1d | LC_CTYPE=C cut -d ';' -f 1 | tr "\\ |" "\\ n" | sed 's/^[ \\ t]*//;s/[ \\ t]*\$ //' | sort | uniq` 
8+ my  $fetcher  = ` which fetch curl wget` 
9+ $fetcher  =~ s /\S +)\s .*$/ $1 / s 
10+ if  ($fetcher  =~ / fetch/ 
11+     $fetcher  .= '  -o -' 
12+ } elsif  ($fetcher  =~ / curl/ 
13+     #  pass
14+ } elsif  ($fetcher  =~ / wget/ 
15+     $fetcher  .= '  -O -' 
16+ } else  {
17+     die  " ERROR: Can't find a program to download data." 
18+ }
19+ 
20+ my  @ips  = ` $fetcher  "https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv" | sed 1d | LC_CTYPE=C cut -d ';' -f 1 | tr "\\ |" "\\ n" | sed 's/^[ \\ t]*//;s/[ \\ t]*\$ //' | sort | uniq` 
921
1022my  $buf  = ' ' 
1123my  $cnt  = 0;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments