git-daemon-verify: validate supplied "host=" hostname
commit7bad76b8137ba3c89d23155d2906c84431a6093d
authorKyle J. McKay <mackyle@gmail.com>
Wed, 7 Oct 2020 02:39:48 +0000 (6 19:39 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 7 Oct 2020 02:39:48 +0000 (6 19:39 -0700)
tree21e344768b49a41bd0af41da7775710ca4e332f3
parent5b71123c2d0a01c33c215e8595e3af10438cd1c9
git-daemon-verify: validate supplied "host=" hostname

By default require a "host=" extra parameter to be sent by git-daemon
clients (Git has done so since v1.4.0, 2006-06-10) that matches the
hostname configured into $Girocco::Config::gitpullurl or is a variant
of localhost.

Various options are available in Girocco/Config.pm to alter this
default behavior.

If $Girocco::Config::gitpullurl has not been set then no "host="
extended arg will be required or matched by default.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
bin/git-daemon-verify