about summary refs log tree commit homepage
path: root/lib/PublicInbox/Emergency.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-11 08:18:28 +0000
committerEric Wong <e@80x24.org>2023-10-11 22:10:52 +0000
commit9d102fcf3fdc1f98999308de47fc6b71e83caf9c (patch)
tree0b56067ca53a5fb00afed3980176e2228b30b137 /lib/PublicInbox/Emergency.pm
parent3d490f2b9a8b2934cb386a8649e034c8c6c70bc9 (diff)
downloadpublic-inbox-9d102fcf3fdc1f98999308de47fc6b71e83caf9c.tar.gz
I think I was too lazy when configuring my Dragonfly VM install.
Diffstat (limited to 'lib/PublicInbox/Emergency.pm')
-rw-r--r--lib/PublicInbox/Emergency.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Emergency.pm b/lib/PublicInbox/Emergency.pm
index 74a4069a..968d7d6f 100644
--- a/lib/PublicInbox/Emergency.pm
+++ b/lib/PublicInbox/Emergency.pm
@@ -18,7 +18,7 @@ sub new {
 
 sub _fn_in {
         my ($self, $pid, $dir) = @_;
-        my $host = $self->{short_host} //= (split(/\./, hostname))[0];
+        my $host = $self->{-host} //= (split(/\./, hostname))[0] // 'localhost';
         my $now = time;
         my $n;
         if ($self->{t} != $now) {