mirror of
				https://github.com/mpolden/echoip.git
				synced 2025-10-26 14:41:59 +01:00 
			
		
		
		
	Use https when downloading databases
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -37,7 +37,7 @@ databases := GeoLite2-City GeoLite2-Country | ||||
|  | ||||
| $(databases): | ||||
| 	mkdir -p data | ||||
| 	curl -fsSL -m 30 http://geolite.maxmind.com/download/geoip/database/$@.tar.gz | tar $(TAR_OPTS) --strip-components=1 -C $(PWD)/data -xzf - '*.mmdb' | ||||
| 	curl -fsSL -m 30 https://geolite.maxmind.com/download/geoip/database/$@.tar.gz | tar $(TAR_OPTS) --strip-components=1 -C $(PWD)/data -xzf - '*.mmdb' | ||||
| 	test ! -f data/GeoLite2-City.mmdb || mv data/GeoLite2-City.mmdb data/city.mmdb | ||||
| 	test ! -f data/GeoLite2-Country.mmdb || mv data/GeoLite2-Country.mmdb data/country.mmdb | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user