summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjake <jake@jakes-mail.top>2022-09-02 19:53:43 -0400
committerjake <jake@jakes-mail.top>2022-09-02 19:53:43 -0400
commitbfa3d4b083f26b6af8809c44aa865c743cd497ba (patch)
treeedef6851ec1808f2f0c972fc6596555b6d1e4dd6
parentf88ff93ef92f3ce79cc01220c4ee9fcbc14649cb (diff)
Fix config setting about gone
Previously, default => gone = true, wouldnt not work. Now it does
-rwxr-xr-xgmi.pl11
1 files changed, 5 insertions, 6 deletions
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;
}
}