Use https when fetching IANA port info

W.C.A. Wijngaards wouter at nlnetlabs.nl
Tue Mar 8 08:01:16 UTC 2016


Hi Michael,

On 07/03/16 23:05, Michael McConville via Unbound-users wrote:
> It's safer and more reliable this way. Look good?

Sure, applied!

Best regards, Wouter

> 
> 
> Index: Makefile.in
> ===================================================================
> --- Makefile.in	(revision 3648)
> +++ Makefile.in	(working copy)
> @@ -552,7 +552,7 @@
>  	@echo "You still need to remove "`dirname $(DESTDIR)$(configfile)`" , $(DESTDIR)$(configfile) by hand"
>  
>  iana_update:
> -	curl -o port-numbers.tmp http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml --compressed
> +	curl -o port-numbers.tmp https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml --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/iana_ports.inc  
>  	rm -f port-numbers.tmp
>  
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20160308/f630ddaf/attachment.bin>


More information about the Unbound-users mailing list