mirrors: restrict mirror source host names
commit12a20f6df5c2e798e32c585b85b8685e310794bc
authorKyle J. McKay <mackyle@gmail.com>
Fri, 29 Aug 2014 11:48:25 +0000 (29 04:48 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 29 Aug 2014 11:48:25 +0000 (29 04:48 -0700)
tree5ca135c70ee099c3d7e79207c1238ed7f344e278
parent26d0983ed6a824e9070accb6627db1b0c71d40ed
mirrors: restrict mirror source host names

By default require mirror source host names to be valid DNS
host names (no IP addresses) with at least 2 label components
and also require that the mirror source is not the same as
the Girrocco host.

This checking is on by default but may be configured with the
$Girocco::Config::restrict_mirror_hosts setting and when enabled
the minimum number of DNS labels required may be adjusted with
the $Girocco::Config::min_dns_labels setting.
Girocco/Config.pm
Girocco/Project.pm
Girocco/Util.pm