From bfa3d4b083f26b6af8809c44aa865c743cd497ba Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 2 Sep 2022 19:53:43 -0400 Subject: Fix config setting about gone Previously, default => gone = true, wouldnt not work. Now it does --- gmi.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'gmi.pl') diff --git a/gmi.pl b/gmi.pl index 269ed36..ab0b0e4 100755 --- a/gmi.pl +++ b/gmi.pl @@ -7,7 +7,7 @@ use warnings; use 5.010; #use diagnostics; -our $VERSION = 'v0.18.0'; +our $VERSION = 'v0.18.1'; # Modules use IO::Socket::SSL; # CPAN @@ -1227,11 +1227,10 @@ sub check_for_gone { } } } - elsif (exists $config->{default}{gone}) { - if (exists $config->{default}{gone}{append} and $config->{default}{gone}{append} eq 'true') { - if (path_in_vhost_root_translated($vhost, "$path.gone")) { - return 1; - } + + if (exists $config->{default}{gone} and $config->{default}{gone} eq 'true') { + if (path_in_vhost_root_translated($vhost, "$path.gone")) { + return 1; } } -- cgit v1.2.3