Use https when fetching IANA port info

Michael McConville mmcco at
Mon Mar 7 22:05:10 UTC 2016

It's safer and more reliable this way. Look good?

---	(revision 3648)
+++	(working copy)
@@ -552,7 +552,7 @@
 	@echo "You still need to remove "`dirname $(DESTDIR)$(configfile)`" , $(DESTDIR)$(configfile) by hand"
-	curl -o port-numbers.tmp --compressed
+	curl -o port-numbers.tmp --compressed
 	if file port-numbers.tmp | grep 'gzip' >/dev/null; then zcat port-numbers.tmp; else cat port-numbers.tmp; fi | awk '/<record>/ {p=0;} /<protocol>udp/ {p=1;} /<protocol>[^u]/ {p=0;} /Decomissioned|Decommissioned|Removed|De-registered|unassigned|Unassigned|Reserved/ {u=1;} /<number>/ { if(u==1) {u=0;} else { if(p==1) { match($$0,/[0-9]+/); print substr($$0, RSTART, RLENGTH) ","}}}' | sort -nu > util/  
 	rm -f port-numbers.tmp

More information about the Unbound-users mailing list