From 256f5c35e4f2ad19c4f2d18424381eadd327f4d2 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 29 Oct 2020 08:07:09 -0700 Subject: [PATCH] Girocco/Config.pm: carefully add to $git_daemon_host_list When adding the various names for localhost to $git_daemon_host_list, be careful and avoid adding something that's already in the list. It doesn't hurt for the same item to be listed more than once, but it is trivially less efficient and it also looks sloppy. Signed-off-by: Kyle J. McKay --- Girocco/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Girocco/Config.pm b/Girocco/Config.pm index 8a59c98..8dbe829 100644 --- a/Girocco/Config.pm +++ b/Girocco/Config.pm @@ -1203,8 +1203,8 @@ if ((!defined($git_daemon_host_list) || $git_daemon_host_list =~ /^\s*$/) && $gdhn ne "." and $gdhn =~ s/\.$//; my $gdhnl = $gdhn; $gdhnl =~ s/(?=0} + foreach $gdhnl, qw"localhost ::1 127.0.0.1"; } } if (defined($git_daemon_host_list)) { -- 2.11.4.GIT